Skip to content

CaptivePortal #7

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

Closed
jellewie opened this issue Jul 29, 2020 · 2 comments
Closed

CaptivePortal #7

jellewie opened this issue Jul 29, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@jellewie
Copy link
Owner

Add a CaptivePortal to APmode?
When connecting to ApMode it would redirect you to the 192.168.4.1 directly, without the user input needed

https://github.com/espressif/arduino-esp32/blob/master/libraries/DNSServer/examples/CaptivePortal/CaptivePortal.ino

@jellewie jellewie added the enhancement New feature or request label Jul 29, 2020
@jellewie
Copy link
Owner Author

Some sample code

https://github.com/espressif/arduino-esp32/blob/master/libraries/DNSServer/examples/CaptivePortal/CaptivePortal.ino
#include <DNSServer.h>
DNSServer dnsServer;
? IPAddress apIP(192, 168, 1, 1);
? WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
dnsServer.start(53, "", apIP); // if DNSServer is started with "" for domain name, it will reply with provided IP to all DNS request
dnsServer.processNextRequest();

@jellewie
Copy link
Owner Author

jellewie commented Aug 3, 2020

Added it, but it only works for HTTP not HTTPS connections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant