fix: set tcp client reconnect interval to three seconds
This commit is contained in:
+2
-1
@@ -15,6 +15,7 @@
|
|||||||
#include "route_msg.h"
|
#include "route_msg.h"
|
||||||
|
|
||||||
#define TCP_CLIENT_CONNECT_TIMEOUT_MS 500
|
#define TCP_CLIENT_CONNECT_TIMEOUT_MS 500
|
||||||
|
#define TCP_CLIENT_RECONNECT_INTERVAL_MS 3000u
|
||||||
#define TCP_CLIENT_STOP_POLL_MS 50u
|
#define TCP_CLIENT_STOP_POLL_MS 50u
|
||||||
|
|
||||||
static BaseType_t tcp_client_stop_requested(void)
|
static BaseType_t tcp_client_stop_requested(void)
|
||||||
@@ -162,7 +163,7 @@ static void tcp_client_task(uint8_t link_index)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
delay_ms = (cfg->reconnect_interval_ms == 0u) ? 3000u : cfg->reconnect_interval_ms;
|
delay_ms = TCP_CLIENT_RECONNECT_INTERVAL_MS;
|
||||||
|
|
||||||
if (first_connect_deferred != 0u) {
|
if (first_connect_deferred != 0u) {
|
||||||
first_connect_deferred = 0u;
|
first_connect_deferred = 0u;
|
||||||
|
|||||||
Reference in New Issue
Block a user