-
Notifications
You must be signed in to change notification settings - Fork 35
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
Bug in parameter Switch automatically to AP if STA network is not found or broken #172
Comments
Fix #172 : Auto to AP when STA is not reachable
@ukicar Please confirm this fix and close the issue if OK |
@ukicar action from you needed! |
Fix confirmed by @manuio (email) |
The original fix works if the connection is lost when the board is powered. From my point of view, the system must stays waiting for the STA network in this case. For example, after a power cut, home routers are often longer to boot than WeIO, and falling back to AP is probably not the intended behavior. |
I propose to transform this part https://github.com/nodesign/weio/blob/master/scripts/run_weio.sh#L118-L127 by : if grep -q '"auto_to_ap": "YES"' /weio/config.weio; then
while [ $WIFI_READY -ne 1 ]; do
echo "WiFi network is not ready. Switching to RESCUE mode."
# We did not connect even after whole delay expired
# Something went wrong - got to RESCUE
/weio/scripts/wifi_set_mode.sh rescue
# Re-check WiFi
check_wifi
done
fi to prevent an auto reconfiguration if |
OK for me. Note - if for some reason you can not log in as a STA (for example typo in the password), you will not come back to AP mode. This will demand manual network set-up, and after that restart of WeIO app. But this is OK for me, as I suppose that |
Yeah, but there's a button to fall back in AP if needed. |
OK, +1 |
PR #260 merged, and fully tested on my side. |
Checkbox has never been cabled behind for this functionality. This is the place where variable comes from IDE : https://github.com/nodesign/weio/blob/master/handlers/userSettingsHandler.py#L121
But in config.weio there is nothing called auto_to_ap
To resolve this issue we have to
The text was updated successfully, but these errors were encountered: