Skip to content
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

Restarting after entering correct password can print confusing "error" #6

Closed
aaaidan opened this issue Dec 25, 2020 · 2 comments
Closed

Comments

@aaaidan
Copy link
Contributor

aaaidan commented Dec 25, 2020

When the device restarts after entering the correct wifi password, there are usually a couple of messages about "Can't connect". This state lasts long enough that it has tricked me into trying again with different (incorrect!) credentials. This seems to be more about the device itself not being ready rather than the password being incorrect.

Is there a way to tell between "can't connect yet" and "wrong password"? Or perhaps rephrasing the message to "waiting to connect" or similar.

...
Accessory configuration number: 1

Connecting to: XXX... Can't connect. Re-trying in 5 seconds. Type 'X <return>' or press Control Button for 3 seconds to terminate search and delete WiFi credentials...
Connecting to: XXX... Can't connect. Re-trying in 5 seconds. Type 'X <return>' or press Control Button for 3 seconds to terminate search and delete WiFi credentials...
Success!  IP:  10.0.0.239

Starting MDNS...
Broadcasting as: HomeSpan-7BFF4D99B831.local (HomeSpan LightBulb / HomeSpan-ESP32)
...
@HomeSpan
Copy link
Owner

Thanks for the feedback on this. Though there is a way to read the error message back from a WiFi hub to determine why the connection was rejected, it does not seem to work all the time, and is not universal. However, since it usually takes 1-3 tries before connecting even with the right password, I'll update the messages (and timing of the messages) to let the user know to wait while HomeSpan is still in the "connecting" process. I'll incorporate into the next release.

@HomeSpan
Copy link
Owner

Fixed in version 1.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants