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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user