Does anyone have an example of how to use the wifi persistence to nvs?
Posted: Wed Oct 18, 2017 3:40 pm
Hello.
I have an esp-idf project that makes use of wifi, ap+sta mode. I'm looking to go from a hardcoded approach to making use of nvs.
Looking at the api, http://esp-idf.readthedocs.io/en/v2.1/a ... _wifi.html, I don't see a way to determine if a configuration was loaded from nvs. I'm also not sure how one determines if the nvs isn't valid in order to either set default values or otherwise provide some indication to the end user that the settings need to be set.
It would be helpful to see an example in esp-idf. I've looked but didn't see one.
Can anyone else help provide some guidance or info on how to best use wifi configurations with nvs?
Thanks,
Chris
I have an esp-idf project that makes use of wifi, ap+sta mode. I'm looking to go from a hardcoded approach to making use of nvs.
Looking at the api, http://esp-idf.readthedocs.io/en/v2.1/a ... _wifi.html, I don't see a way to determine if a configuration was loaded from nvs. I'm also not sure how one determines if the nvs isn't valid in order to either set default values or otherwise provide some indication to the end user that the settings need to be set.
It would be helpful to see an example in esp-idf. I've looked but didn't see one.
Can anyone else help provide some guidance or info on how to best use wifi configurations with nvs?
Thanks,
Chris