File tree 1 file changed +3
-2
lines changed
libraries/DNSServer/examples/CaptivePortalAdvanced
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
#include < DNSServer.h>
5
5
#include < ESP8266mDNS.h>
6
6
#include < EEPROM.h>
7
+ #include < uri/UriGlob.h>
7
8
8
9
/*
9
10
This example serves a "hello world" on a WLAN and a SoftAP at the same time.
@@ -74,8 +75,8 @@ void setup() {
74
75
server.on (" /" , handleRoot);
75
76
server.on (" /wifi" , handleWifi);
76
77
server.on (" /wifisave" , handleWifiSave);
77
- server.on (" /generate_204" , handleRoot); // Android captive portal. Maybe not needed . Might be handled by notFound handler.
78
- server.on (" /fwlink" , handleRoot); // Microsoft captive portal. Maybe not needed. Might be handled by notFound handler.
78
+ server.on (UriGlob ( " /generate_204* " ) , handleRoot); // Android captive portal. Handle "/generate_204_<uuid>"-like requests . Might be handled by notFound handler.
79
+ server.on (" /fwlink" , handleRoot); // Microsoft captive portal. Maybe not needed. Might be handled by notFound handler.
79
80
server.onNotFound (handleNotFound);
80
81
server.begin (); // Web server start
81
82
Serial.println (" HTTP server started" );
You can’t perform that action at this time.
0 commit comments