NVS WiFi data - how to read?

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

NVS WiFi data - how to read?

Postby jcsbanks » Fri Dec 21, 2018 12:44 am

I looked for documentation, but could not see if there was a way to read WiFi config from NVS rather than attempting to connect first. Use case is flexibility in a WiFi manager.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: NVS WiFi data - how to read?

Postby ESP_igrr » Fri Dec 21, 2018 1:06 am

You can call esp_wifi_get_config function after calling esp_wifi_init — this will return configuration previously saved into NVS.

https://docs.espressif.com/projects/esp ... i_config_t

Who is online

Users browsing this forum: Google [Bot] and 93 guests