fix WiFi connect failing immediately after scan.

Ignore transient NO_SSID after begin; settle radio after scan; longer timeout and connect logs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-25 20:20:56 +08:00
parent 1ca8d32141
commit 78873e0c6d
5 changed files with 76 additions and 16 deletions

View File

@@ -18,7 +18,12 @@
#endif
#ifndef WIFI_PROV_CONNECT_TIMEOUT_MS
#define WIFI_PROV_CONNECT_TIMEOUT_MS 20000u
#define WIFI_PROV_CONNECT_TIMEOUT_MS 30000u
#endif
/* Ignore transient WL_NO_SSID_AVAIL / CONNECT_FAILED right after WiFi.begin(). */
#ifndef WIFI_PROV_FAIL_GRACE_MS
#define WIFI_PROV_FAIL_GRACE_MS 8000u
#endif
#ifndef WIFI_PROV_RECONNECT_MS