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

If misconfigure wifi credentials, can't connect to AP #15

Closed
piersfinlayson opened this issue Jan 22, 2017 · 4 comments
Closed

If misconfigure wifi credentials, can't connect to AP #15

piersfinlayson opened this issue Jan 22, 2017 · 4 comments
Labels

Comments

@piersfinlayson
Copy link
Owner

If you misconfigure your wifi credentials via the captive portal - or your usual wifi network goes away - the otb-iot AP doesn't appear to support incoming connections (to update connection details). This is a bit sad.

@piersfinlayson
Copy link
Owner Author

Doesn't happen if you just misconfigure MQTT server - only if you get the AP (or presumably password) wrong.

@piersfinlayson
Copy link
Owner Author

The problem only occurs with an invalid configured AP (incorrect password, or uncontactable MQTT server are fine). It's because of this:
esp8266/Arduino#1661
Looks like I should run a timer when trying to connect, and if it fails (times out, maybe for 30s) I should then terminate the station connect and sit with the AP available for a while.

@piersfinlayson
Copy link
Owner Author

Would prefer better behaviour - don't advertise AP until it can actually be connected to (after station connect has failed). The code is a bit yucky though so pushing this out until I have time for a rework.

@piersfinlayson
Copy link
Owner Author

Going to close this - it's fine as is (30s can't connect, 4.5 minute you can). A reset to factory defaults would fix anyway.

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

No branches or pull requests

1 participant