diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c index 87160f5..4a9bb62 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c @@ -1210,11 +1210,12 @@ void tcp_json_poll(void) { goto do_restart; } - // Auth timeout — 60s 未完成鉴权 → 重启网络接口 + // Auth timeout — 60s 未完成鉴权 → 重启网络接口 (不计数, 正常运维行为) if (g_json_auth_state == JSON_STATE_WAIT_AUTH) { if (mstick() - g_json_auth_timer > TCP_JSON_AUTH_TIMEOUT_MS) { - PRINT("JSON: Auth timeout → restart\n"); - goto do_restart; + PRINT("JSON: Auth timeout → restart (no count)\n"); + tcp_json_restart(); + return; } }