Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

captive portal esp8266

void handleAppleCaptivePortal() {
    String Page = F("<HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>Success</BODY></HTML>");

    webServer.sendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
    webServer.sendHeader("Pragma", "no-cache");
    webServer.sendHeader("Expires", "-1");
    webServer.send(200, "text/html", Page);
    return;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #captive #portal
ADD COMMENT
Topic
Name
1+5 =