-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confirm successful WiFi provisioning via SoftAP #67
Comments
Hi @benrudhart, provision API sends information on success, failure, and when WI-FI configuration is applied successfully on the device. For more detailed usage of this API, kindly refer to the ESPProvisionSample app within the repository: Line 69 in 4668cda
|
Hi @benrudhart this error is coming from the device. The device is giving an error when we are trying to fetch the status after applying the Wi-Fi configuration. Can you please send us the device detail logs using the debug mode? Additionally, you can try placing the device near the router while provisioning or try with different Wi-Fi networks to ensure that it is not related to a poor network signal. |
@benrudhart ESP chips have 2 interfaces, station and softAP, but a single antenna. So, when the device receives the Wi-Fi network credentials, and tries connecting to the target AP using the station interface, the softAP channel also switches to the target APs channel. While this channel switches, some phones have a tendency to immediately disconnect and reconnect to some other saved network. Since the connection has dropped, the phone cannot query the status and so the failure is seen. In our experience, this happens mostly with Android phones though, not with iOS. Moreover, this issue occurs only with SoftAP provisioning, not BLE. I am not sure if this is indeed the issue here, but could be possible. |
For me it happened on iOS, and yes - I was using SoftAP. Unfortunately I'm unable to provide device detail logs |
Description
When using
espDevice.provision(ssid: ssid, passPhrase: passphrase) { status in }
as described in the Readme there is no callback I could find that would report a success.Once my device uses the provided credentials it kills the SoftAP (I'm provisioning via WiFi). Hence I don't get any feedback.
Is this expected or do I miss something?
To Reproduce
Steps to reproduce the behavior:
espDevice.provision
Frequency
Every time
Expected behavior
There is a way to differentiate between success/ failure when doing WiFi provisioning
ESP Device Information:
iOS information:
Provisioning information:
The text was updated successfully, but these errors were encountered: