43907 The TCP client cannot use the Keepalive function with NetX_Duo

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Jimmy_Chen1
Level 2
Level 2
First like given First like received 5 replies posted

The TCP client cannot use the Keepalive function. 

Using this function doesn't work:

Wiced_tcp_enable_keepalive (&tcp_client_socket,TCP_KEEP_ALIVE_INTERVAL, TCP_KEEP_ALIVE_PROBES,TCP_KEEP_ALIVE_TIME);

 

The following methods will not work:

Changing the value of NX_TCP_KEEPALIVE_INITIAL, NX_TCP_KEEPALIVE_RETRIES, and NX_TCP_KEEPALIVE_RETRY in nx_tcp. h and nx_user.h does not work. The macro NX_ENABLE_TCP_KEEPALIVE and  NX_ENABLE_TCP_KEEPALIVE are defined.

0 Likes
1 Solution
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

This query is being handled internally via case. The thread will be updated with the solution when the query will be resolved.

Thanks

Aditi

View solution in original post

0 Likes
3 Replies
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

Does defining the macro NX_ENABLE_TCP_KEEPALIVE solve the issue in your case?

Thanks

Aditi

0 Likes

Hi,AditiB_81

  • The macro NX_ENABLE_TCP_KEEPALIVE is defined.

  • I also can't use keepalive with the example project snip.tcp_server.

  • Is it because WICED6.6 uses NetX Duo with .a files?

  •  
  • 11.png
0 Likes
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

This query is being handled internally via case. The thread will be updated with the solution when the query will be resolved.

Thanks

Aditi

0 Likes