-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fallback to other connection configuration when box can't connect to network in client mode? #209
Comments
I did some research into this issue. If you setup your WiFi-Box using a cable everything is as expected. You get some feedback stating that your password was incorrect but the WiFi-Box stays in STA mode. Shouldn't it switch back to AP mode when it is unable to connect? Can we create a little deamon that checks if wifi is still connected and if not resets your wifi connection to AP mode? |
Let's keep this issue focused on one issue, the fact that a wifibox that gets a wrong password can only be connected to by cable.
Do you have an advice on this matter? How would you handle this? Would you handle it like we describe in the Always available diagram: |
I did a little experiment with a possible fallback solution: at the moment I see 3 possible solutions:
I'll look into other possibilities on monday. |
I added this fix in in Doodle3D/doodle3d-firmware@9d07647 only 1 minor issue: if you havent actually clicked the 'open accesspoint' before the network comes back as 'undefined' |
seems that the only calling the setup AP function is not enough, has this something to do with how uci works etc? I created a working fix that follows this principle : +1: See Doodle3D/doodle3d-firmware@c6b01a3 |
Maybe this one can be closed? As it is available in the current beta release? |
Yes, that makes sense. The relevant pull request: Doodle3D/doodle3d-firmware#63 |
Currently when you're communicating through access point mode to the box, you try to make it connect to an existing network, but mistype the password you will lose the connection (having no feedback) and you can only reconnect trough wire.
Even when you restart this last configuration will be on the top of the list and it will fail to connect again.
Should we automatically remove the configuration it can't connect to, and try to reconnect, so it falls back to something else? When it was previously an access point mode it will become an access point again. When it was previously connected to an WiFi network and this network is available it will connect to that, if none known are available it will become an access point as well.
We would need to change around the api to provide feedback (like "couldn't connect to network") because this feedback would be overriden by the reconnection attempt.
The text was updated successfully, but these errors were encountered: