How to re-provision ESP with wifi credentials without forcing a reboot?

karunt
Posts: 93
Joined: Sat Apr 03, 2021 7:58 am

Re: How to re-provision ESP with wifi credentials without forcing a reboot?

Postby karunt » Fri Jan 13, 2023 7:01 pm

Are the changes in commit 9bc1cc7 reflected in the appropriate components file ("components/wifi_provisioning/src/manager.c")? I'm asking specifically about function "wifi_prov_mgr_reset_sm_state_for_reprovision". I'm using esp-idf 5.0 but don't see this function in "components/wifi_provisioning/src/manager.c". Any idea why?

I'm asking because when I try to use this function in my app, I get the following error:
implicit declaration of function 'wifi_prov_mgr_reset_sm_state_for_reprovision'; did you mean 'wifi_prov_mgr_reset_sm_state_on_failure'?

vidaljuanp
Posts: 2
Joined: Thu Apr 13, 2023 12:40 pm

Re: How to re-provision ESP with wifi credentials without forcing a reboot?

Postby vidaljuanp » Sat Apr 15, 2023 1:12 pm

The example wifi_prov_mgr is quite good.
But I found an issue using the "ESP BLE Prov" app in iOS. After typing the wrong credentials the app displays the message of "authentication error", it also displays the message "Reset your board to factory defaults and retry". And it gets linked to the device via BLE. and it doesn't allow to re-enter a password again. nor find the device. One must have to reset the device or close and open the iOS app again.

Who is online

Users browsing this forum: No registered users and 380 guests