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.
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?