Hello,
I am able to successfully set up the smartconfig example using the ESPTOUCH app. I would like to modify this example to automatically connect to the last working WiFi network. Can someone provide guidance on the best way to do this?
I can easily save the ssid and password using something similar to the NVS RW example. However, I noticed in the documentation that the esp_wifi_init() method has an option for a WiFi NVS structure. https://esp-idf.readthedocs.io/en/v2.0/api/wifi/esp_wifi.html#_CPPv213esp_wifi_initP18wifi_init_config_t Is there an automatic way to retrieve previously working credentials on boot using this?
Thanks!
Store Smart Config ssid and password in WiFi NVS structure
Re: Store Smart Config ssid and password in WiFi NVS structure
Postby pratik » Fri Oct 06, 2017 7:45 pm
Oops, you should be posting ESP32 questions on esp32.com
And as for the question, I tried to use WIFI_STORAGE_FLASH and store WiFi credentials to flash but that does not seem to be working for some reason. At least not reliably. I am using a custom WiFi event handler and not the IDF default one.
And as for the question, I tried to use WIFI_STORAGE_FLASH and store WiFi credentials to flash but that does not seem to be working for some reason. At least not reliably. I am using a custom WiFi event handler and not the IDF default one.
Who is online
Users browsing this forum: No registered users and 120 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.