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

add 5m timeout to captive portal #61

Merged
merged 2 commits into from
Mar 26, 2023
Merged

Conversation

sumnerboy12
Copy link
Contributor

This prevents a device which is rebooting when there is no WiFi available, from sitting in captive portal mode indefinitely.

The Rack32 needs to continue booting and allow processing of events in failover mode if the network or MQTT is down.

Ideally we would periodically try to reconnect to WiFi once the captive portal expires, if there are WiFi creds saved, but I am not sure how easy this is to do with the WifiManager lib.

@sumnerboy12 sumnerboy12 requested a review from moinmoin-sh March 21, 2023 08:55
@moinmoin-sh
Copy link
Contributor

I would prefer an implementation as we have with the Panel FW where we are rebooting until WiFi is available. This is the only way to get out of the mentioned scenario to recover the Wifi connection after power drop.
Failover would not be possible in this case, but I don't think that user who have invested into a failover system like KNX will use wifi for the rack mounted controller.

@sumnerboy12
Copy link
Contributor Author

I have updated this in line with your comments @moinmoin-sh - can you review and approve if you are happy with it now?

Copy link
Contributor

@moinmoin-sh moinmoin-sh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me.

@sumnerboy12 sumnerboy12 merged commit 6654433 into main Mar 26, 2023
@sumnerboy12 sumnerboy12 deleted the captive_portal_timeout branch March 26, 2023 07:20
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

Successfully merging this pull request may close these issues.

2 participants