Page 1 of 1

wifi MODE setting in NVS?

Posted: Fri Jan 11, 2019 8:12 pm
by phatpaul
I know the WiFi driver can save the STA and AP settings in NVS.
(I have it working with: esp_wifi_set_storage(WIFI_STORAGE_FLASH) ... esp_wifi_get_config(ESP_IF_WIFI_STA, &sta_stored_config) )


But can it also save the current mode too? (AP, STA, or AP+STA)
( I tried esp_wifi_get_mode(&old_mode) but it always returns AP+STA, regardless of the mode before rebooting)

So do I need to implement that myself?

Re: wifi MODE setting in NVS?

Posted: Fri Jan 11, 2019 10:30 pm
by phatpaul
Nevermind, it does work.

Re: wifi MODE setting in NVS?

Posted: Sun Jan 13, 2019 5:46 pm
by brp80000
Use nvs to store. Any roblem?