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
should open accesspoint when fails connecting to network ssid #41
Comments
tested the scenario of changing to wifi network with incorrect password. cannot connect (obviously) and then it doesn't create an accesspoint either.
wifibox log
excerpt from logs:
|
there is a constant M.CONNECTING_FAILED = -1 but this never leads to creating a hotspot again. why not? in the earlier hostmodule project such a fallback was implement in place such as the function M.setStatus(code,msg) pseudo: |
mind the timing issues... can not be or attempt to be client & accesspoint at same time |
I don't think we use these constants to check if something went wrong, it's main usage is communicating the status over the REST API. I think we mostly use the return value of functions to check if something went wrong. |
I can confirm this issue also happens with version 0.10.5. When entering a wrong password the only way to regain access to the wifibox is by connecting a UTP cable. |
Please, please think trough how this is going to work though. There is a big change that when you use our current "start a accesspoint" logic it will never try to connect to that WiFi network again. Because from then on the accesspoint config is the preferred (top) wireless config. |
Is there some way to detect that it failed to connect to a network (ie wrong password?), if so we should delete that network from /etc/config/wireless. You don't need to 'start a accesspoint' because 'it' should do it automatically if that's the next interface in the configfile. |
I don't think we could, not back then anyway. I think we check if it worked by checking ip address and whether the ssid is filled in. |
Also see: Doodle3D/doodle3d-client#209 |
see this line here:
https://github.com/Doodle3D/doodle3d-firmware/blob/master/src/main.lua#L104
in the else it should open up the accesspoint again
The text was updated successfully, but these errors were encountered: