diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c index 4a9bb62..ef21a8b 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c @@ -1210,14 +1210,8 @@ void tcp_json_poll(void) { goto do_restart; } - // 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 (no count)\n"); - tcp_json_restart(); - return; - } - } + // Auth: 3次失败在 handle_pwd_verify 中直接 tcp_json_restart() + // 5分钟无通信/无连接由上方 do_restart 路径处理 // Lockout timeout check (existing) if (g_json_auth_state == JSON_STATE_LOCKOUT) {