Multiple wifi credentials inside NVS partition.

CKiamy
Posts: 19
Joined: Wed Nov 23, 2022 3:01 pm

Multiple wifi credentials inside NVS partition.

Postby CKiamy » Wed Nov 23, 2022 3:20 pm

For my current project I am using the ESP32-WROOM-32 product from espressif. I want to able to provision the ESP32 with multiple wifi credentials inside the NVS partition, and create a "list" of possible wifi credentials to use every time I turn on station mode in the esp32.

From my understanding the provisioning example from the idf uses esp_wifi_set_storage(WIFI_STORAGE_FLASH) to store wifi credential values to the nvs.
  1. esp_wifi_set_storage(WIFI_STORAGE_FLASH)
In any case if i re-run the provisioning function and provide the device with new credentials from another router, the old credentials get overwritten by the newly given ones since I cannot connect to the previous AP.

Is there a way to store multiple credentials inside the NVS and pick one based on signal strength?

Who is online

Users browsing this forum: danpf1 and 131 guests