How to re-apply wifi credentials with ESP-IDF without device restart?
Posted: Mon Sep 09, 2019 7:38 pm
Using provisioning manager over BLE, once bad credentials have been applied, I have to clear NVS and reset the device to allow for accepting new wifi credentials. This brakes the BLE connection and UX suffers because user has to re-connect the device.
This is the typical message if you want to apply wifi credentials more than once during one session "wifi_prov_handlers: Failed to apply Wi-Fi Credentials".
I am looking for solution that allows new set of credentials without restarting the device. Digging into source I couldn't find obvious functions. I am pretty sure that wifi state has to be set to WIFI_PROV_STATE_IDLE somehow.
I am using ESP-IDF: v3.3 LTS
This is the typical message if you want to apply wifi credentials more than once during one session "wifi_prov_handlers: Failed to apply Wi-Fi Credentials".
I am looking for solution that allows new set of credentials without restarting the device. Digging into source I couldn't find obvious functions. I am pretty sure that wifi state has to be set to WIFI_PROV_STATE_IDLE somehow.
I am using ESP-IDF: v3.3 LTS