I am using Arduino with an ESP8266 module (ESP12F) and occasionally, the module gets into a mode where it loses connectivity with the access point. When that happens, calling WiFi.scanNetworks() immediately returns with a -2 error code and any attempt to re-connect to the access point will fail until I reset the module (e.g. via Soft WDT reset) at which point it will immediately reconnect to the access point.
- Is there a list of error return codes from methods like scanNetworks?
- Has anyone else seen this problem?
- Is there a known solution or workaround?
Any ideas would be appreciated. Thanks!