tonyp7 / esp32-wifi-manager

Captive Portal for ESP32 that can connect to a saved wireless network or start an access point where you can connect to existing wifis.
MIT License
664 stars 217 forks source link

Losing wifi credentials #47

Closed ginodecock closed 4 years ago

ginodecock commented 5 years ago

Hi,

I've integrated wifi manager into a battery operated mailbox detection solution. Here I've used the ESP-Wrover module because it can operate on lower voltages. It is powered by 2 x AA.

I notice from time to time that the wifi credentials are lost and needed to be re-configured with the wifi manager ui.

Any idea what can cause this behavior?

Thanks,

ojousima commented 5 years ago

I've noticed similar behavior on older version of wifi-manager, but I've never been able to figure out how to repeat the issue.

ginodecock commented 4 years ago

With recent versions I also have the same problem.

kongon commented 4 years ago

I have also the same problem at latest version.

benjamintyler commented 4 years ago

I have noticed this as well...sometimes it randomly will need to be reconfigured.

benjamintyler commented 4 years ago

I think I figured this out. Comment out line 945 and it will fix it.

The sporadic erasing of credentials happens if you lose wifi signal too many times, or the connection times out.

https://github.com/tonyp7/esp32-wifi-manager/blob/master/src/wifi_manager.c#L945

tonyp7 commented 4 years ago

This is fixed as of v3.1