- Notifications
You must be signed in to change notification settings - Fork7.7k
feat(ap): Add support for DHCP Captive Portal (opt 114)#11412
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
github-actionsbot commentedMay 30, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
👋Hello me-no-dev, we appreciate your contribution to this project! 📘 Please review the project'sContributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you haveread and signed theContributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
github-actionsbot commentedMay 30, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Test Results 76 files 76 suites 12m 45s ⏱️ Results for commit711ca88. ♻️ This comment has been updated with latest results. |
a2880a4
intomasterUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
This pull request introduces functionality to enable a DHCP-based captive portal for WiFi access points, along with updates to simplify the setup process in the Captive Portal example. The most significant changes include adding the new
enableDhcpCaptivePortal
method to theAPClass
, modifying the example code to utilize this new feature, and updating theWiFiAP.h
header file to declare the new method.Enhancements to WiFi Access Point functionality:
enableDhcpCaptivePortal
method toAPClass
: This method enables a DHCP-based captive portal by configuring the DHCP server to redirect clients to a specific captive portal URI. It includes error handling for stopping and starting the DHCP server and checks if the access point is started before enabling the feature.enableDhcpCaptivePortal
inWiFiAP.h
: The new method is added to theAPClass
interface, making it accessible for users of the library.Updates to the Captive Portal example:
CaptivePortal.ino
: Replaced the manual configuration of the access point with the newWiFi.AP.create
andWiFi.AP.enableDhcpCaptivePortal
methods, streamlining the setup process for users.Closes#11399