-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Wifi.persistent(true) is not working #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
pretty much :) |
Ok thanks for the update; I've worked around the problem using Preferences. Keeping the issue open until it gets fixed. |
any news about this ? |
@salqadri do you have an example for Preferences ?A workaround should be nice. |
Sure. Here are some apis I wrote for myself to save and load strings that works for both ESPs:
|
I have looked at the code for Further investigation actually shows that the WiFI settings are getting persisted, regardless of whether you want this or not. However, unlike Here's some code you can use to read the previously used SSID and password if case its useful:
I've successfully used this to test if I'm connecting to the same AP as last time, so that I can work around another bug in the library that basically stops the esp32 from connecting to a new AP unless you reboot it a couple of times:
I don't want to constantly nuke the config settings by simply following the lower branch each time because I'm connecting every 5 minutes from deep sleep, so I'm worried about wearing out the EEPROM by constantly writing new data to the NVM. |
@salqadri , thanks for the work around API,but unfortunately i was unable to us this APIs in arduino to make esp32 do the same Wifi.persistent(true) functionality so it remember to connect to same AP it was connected before deepsleep. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This stale issue has been automatically closed. Thank you for your contributions. |
I tried doing a WiFi.persistent(true); before my WiFi.begin and unfortunately when I restart my device Wifi.SSID() is still empty. This behavior is different to what I am used to with the ESP8266. Has WiFi.persistent basically not been implemented yet?
The text was updated successfully, but these errors were encountered: