fix: set tcp client reconnect interval to three seconds

This commit is contained in:
2026-04-29 04:55:16 +08:00
parent 3cb49fc4f8
commit 0681b8bbe4
+2 -1
View File
@@ -15,6 +15,7 @@
#include "route_msg.h"
#define TCP_CLIENT_CONNECT_TIMEOUT_MS 500
#define TCP_CLIENT_RECONNECT_INTERVAL_MS 3000u
#define TCP_CLIENT_STOP_POLL_MS 50u
static BaseType_t tcp_client_stop_requested(void)
@@ -162,7 +163,7 @@ static void tcp_client_task(uint8_t link_index)
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) {
first_connect_deferred = 0u;