Page 1 of 1

Occasionally WIFI not connecting even after several reconnect attempts.

Posted: Wed Sep 04, 2019 5:26 am
by Zeni241
I have a moisture sensor based on esp32 running on battery. Each time it wakeup from deep sleep, it retrieves SSID and PW from NVS and connect to WIFI. Usually this works fine, but sometimes it does not connect to WIFI no matter how many reconnect attempts (though it successfully retrieves SSID and PW from NVS each time ). This drains the battery fast. I could not figure out why this happens? Will esp_restart(); is the fix in this situation, and is the only solution in this case?