fix(tcp): recover stalled TCP client connects

This commit is contained in:
2026-05-12 03:31:39 +08:00
parent d36f6b4bee
commit e203db13ca
2 changed files with 57 additions and 8 deletions
+2
View File
@@ -16,6 +16,7 @@ extern "C" {
#define TCP_CLIENT_INSTANCE_COUNT 2u
#define TCP_CLIENT_RX_BUFFER_SIZE 480u
#define TCP_CLIENT_RECONNECT_DELAY_MS 3000u
#define TCP_CLIENT_CONNECT_TIMEOUT_MS 10000u
typedef enum {
TCP_CLIENT_STATE_IDLE = 0,
@@ -39,6 +40,7 @@ typedef struct {
uint32_t rx_bytes;
uint32_t tx_bytes;
uint32_t reconnect_count;
uint32_t connect_timeout_count;
uint32_t errors;
} tcp_client_status_t;