CONFIG_EXAMPLE_PROV_TRANSPORT=1 CONFIG_EXAMPLE_RESET_PROVISIONED=y CONFIG_EXAMPLE_RESET_PROV_MGR_ON...
};ESP_ERROR_CHECK(wifi_prov_mgr_init(config));boolprovisioned =false;wifi_prov_mgr_reset_provisioning();ESP_ERROR_CHECK(wifi_prov_mgr_is_provisioned(&provisioned));if(!provisioned) {ESP_LOGI(TAG,"Starting provisioning");charservice_name[12];get_device_service_name(service_name,sizeof(serv...
_PROV_TRANSPORT=1CONFIG_EXAMPLE_RESET_PROVISIONED=yCONFIG_EXAMPLE_RESET_PROV_MGR_ON_FAILURE=yCONFIG_EXAMPLE_PROV_MGR_MAX_RETRY_CNT=5# CONFIG_EXAMPLE_PROV_SHOW_QR is not set# CONFIG_EXAMPLE_REPROVISIONING is not set# end of Example Configuration# Wi-Fi Provisioning Manager#CONFIG_WIFI_PROV_...
Espressif IoT Development Framework. Official development framework for Espressif SoCs. - esp-idf/examples/provisioning/wifi_prov_mgr/main/app_main.c at v4.4.2 · espressif/esp-idf
if you look at wifi_prov_mgr example project, you have, case WIFI_PROV_CRED_FAIL: { wifi_prov_sta_fail_reason_t *reason = (wifi_prov_sta_fail_reason_t *)event_data; ESP_LOGE(TAG, "Provisioning failed!\n\tReason : %s" "\n\tPlease reset to factory and retry provisioning", ...
Support for re-provisioning the device for new credentials once the device had been successfully provisioned before has been added with the commit 9bc1cc7 in ESP-IDF. Please check out the wifi_prov_mgr example for details. Also, an additional endpoint has been added for controlling the Wi-F...