[HELP] Where can I find the definition of the WiFI autoReconnect interval?
- Dominant language
- C++
- Stars
- 16.7k
- Forks
- 13.1k
- PR merge metrics
- No merged PRs in 30d
Description
When ESP is connected to a WiFi network, and it disconnects, it automatically attempts to reconnect to the network once every second. This severely affects loading time for a SoftAP web server, if active at that time.
My intention was to just disable this feature using "WiFi.setAutoReconnect(false);". This, unfortunately, has a bug where, when disabled, the WiFi.status() does not change from WL_CONNECTED, and WiFi.isConnected() does not change to false when a WiFi network disconnects.
Next up I tried to just increase the delay from 1 second to 10 seconds, which is where I'm at now.
I tried searching for parts of the debug message printed ("no WIFI_NETWORK_SSID found, reconnect after 1s"): "found, reconnect" and "reconnect after", in all the files in the library folder (C:\Users\current_user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries) using the "Find in Files" function of Notepad++. I did not get any results from this.
My question is, where is the 1-second auto-reconnect interval defined? And, is there already some sort of function already in place for changing this interval value?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.