wifi MODE setting in NVS?

phatpaul
Posts: 109
Joined: Fri Aug 24, 2018 1:14 pm

wifi MODE setting in NVS?

Postby phatpaul » Fri Jan 11, 2019 8:12 pm

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?

phatpaul
Posts: 109
Joined: Fri Aug 24, 2018 1:14 pm

Re: wifi MODE setting in NVS?

Postby phatpaul » Fri Jan 11, 2019 10:30 pm

Nevermind, it does work.

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: wifi MODE setting in NVS?

Postby brp80000 » Sun Jan 13, 2019 5:46 pm

Use nvs to store. Any roblem?

Who is online

Users browsing this forum: Bing [Bot] and 107 guests