On every startup, WiFiManager loops three times. This was there before the async work, so I believe it's in wifi_setup.cpp.Here is how I've done it previously.
*WM: [3] allocating params bytes: 20
*WM: [2] Added Parameter: mdns
*WM: [1] AutoConnect.
*WM: [2] ESP32 event handler enabled.
*WM: [2] Connecting as WiFi client.
*WM: [3] STA static IP:
*WM: [2] setSTAConfig static ip not set, skipping.
*WM: [3] WIFI station disconnect.
*WM: [1] Connect Wifi, ATTEMPT # 1 of 3
*WM: [1] Connecting to saved AP: ********
*WM: [3] Using password: ********
*WM: [3] WiFi_enableSTA: enabled.
*WM: [3] Mode after delay: STA
*WM: [1] connectTimeout not set, ESP waitForConnectResult.
*WM: [2] Connection result: WL_CONNECTED
*WM: [1] Connect Wifi, ATTEMPT # 2 of 3
*WM: [1] Connecting to saved AP: ********
*WM: [3] Using password: ********
*WM: [3] WiFi_enableSTA: enabled.
*WM: [3] Mode after delay: STA
*WM: [1] connectTimeout not set, ESP waitForConnectResult.
*WM: [2] Connection result: WL_CONNECTED
*WM: [1] Connect Wifi, ATTEMPT # 3 of 3
*WM: [1] Connecting to saved AP: ********
*WM: [3] Using password: ********
*WM: [3] WiFi_enableSTA: enabled.
*WM: [3] Mode after delay: STA
*WM: [1] connectTimeout not set, ESP waitForConnectResult.
*WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [1] AutoConnect: SUCCESS
*WM: [1] STA IP address: 192.168.XX.XX
*WM: [3] Freeing allocated parameters.
*WM: [3] Unloading AsyncWiFiManager.
On every startup, WiFiManager loops three times. This was there before the
async
work, so I believe it's inwifi_setup.cpp.
Here is how I've done it previously.