khoih-prog / ESPAsync_WiFiManager

This is an ESP32 (including ESP32-S2 and ESP32-C3) / ESP8266 WiFi Connection Manager, using ESPAsyncWebServer, with fallback web configuration portal. Use this library for configuring ESP32, ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson 6.0.0+ as well as 5.13.5- . Using AsyncDNSServer instead of DNSServer now.
MIT License
290 stars 73 forks source link

Frequent run time error "Connecting MultiWifi..." #129

Closed prakash52kar closed 1 year ago

prakash52kar commented 1 year ago

Describe the bug

Just used the example code from Arduino IDE "Async_AutoConnect". The code successfully compiles and uploads in AIThinker ESP32CAM

Expected behavior

It should give a captive portal and wait instead of giving this error repeatedly (may be restarting on its own)

Actual behavior

As shown in the screenshot!

Please ensure to specify the following:

Screenshot (73)

khoih-prog commented 1 year ago

Don't use the simplest example Async_AutoConnect. The reset is intentional when you can't connect to WiFi (with SSID=0 and PW=0)

https://github.com/khoih-prog/ESPAsync_WiFiManager/blob/a351dee184fd27d72b0c0232f5ac08af49003444/examples/Async_AutoConnect/Async_AutoConnect.ino#L415-L423

Use more complex Async_ConfigOnDoubleReset example, and use DRD to enter Config Portal to input correct SSID/PWD