khoih-prog / ESP_WiFiManager

This is an ESP32 / ESP8266 WiFi Connection Manager with fallback web configuration portal. Use this library for configuring ESP32 (including ESP32-S2 and ESP32-C3), 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
MIT License
371 stars 97 forks source link

Starting configuration portal takes very long #84

Closed lols closed 2 years ago

lols commented 2 years ago

22:04:08.756 -> Open Config Portal without Timeout: Double Reset Detected 22:04:08.756 -> Starting configuration portal @ 192.168.4.1:80, SSID = ESP , PWD = MyESP 22:05:08.756 -> [WM] WiFi.waitForConnectResult Done

Hi, how i can reduce this wait time? I'm running ESP32_FSWebServer_DRD.ino

khoih-prog commented 2 years ago

Hi @lols

  1. Try
#define USE_ESP_WIFIMANAGER_NTP     false

Check

https://github.com/khoih-prog/ESP_WiFiManager/blob/69ec6b3e686485f04364277c6172e4a29ea64dce/examples/ESP32_FSWebServer_DRD/ESP32_FSWebServer_DRD.ino#L213-L215

  1. Turn on max debug level = 4 and see what is going on then
#define _WIFIMGR_LOGLEVEL_    3

https://github.com/khoih-prog/ESP_WiFiManager/blob/69ec6b3e686485f04364277c6172e4a29ea64dce/examples/ESP32_FSWebServer_DRD/ESP32_FSWebServer_DRD.ino#L48-L49

It's possible WiFiScan is taking so long time in your environment (too many SSIDs, ???)

  1. Which ESP32 board and core are you using ?

  2. It's weird that

22:04:08.756 -> Starting configuration portal @ 192.168.4.1:80, SSID = ESP_ , PWD = MyESP_

Is there something wrong with your board ?


You have to include the full debug terminal output along with full info (core, board, environment, etc) next time or the non-actionable issue will be ignored and closed.

Good Luck,