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

Captive portal #12

Merged
merged 3 commits into from
Mar 12, 2024
Merged

Captive portal #12

merged 3 commits into from
Mar 12, 2024

Conversation

tcsullivan
Copy link
Collaborator

This builds off of the work done in the dns branch and the code from the esp32-captive-portal-example to implement captive portal functionality in the latest code. I adjusted the code to follow Arduino's RequestHandler interface that I had our AccessPoint class inherit, so we could avoid including the additional Async libraries that the example code used.

The redirect on WiFi connection appears to be working: I've tested this on Windows/Firefox, Linux/Firefox, iOS/WebKit, and Android.

@tcsullivan
Copy link
Collaborator Author

Repeated testing on iOS didn't trigger the captive portal, but forgetting and reconnecting to the Noisemeter WiFi fixed it. We will probably just need to give users a note to forget the network if they happen to be re-configuring their device.

@tcsullivan tcsullivan merged commit 7e09b71 into main Mar 12, 2024
2 checks passed
@tcsullivan tcsullivan deleted the dns2 branch March 12, 2024 19:00
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.

1 participant