Occasionally WIFI not connecting even after several reconnect attempts.

Zeni241
Posts: 86
Joined: Tue Nov 20, 2018 4:28 am

Occasionally WIFI not connecting even after several reconnect attempts.

Postby Zeni241 » Wed Sep 04, 2019 5:26 am

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?

Who is online

Users browsing this forum: No registered users and 134 guests