After restart you will be connected to Wifi ";
body += WIFIssid;
@@ -996,6 +1003,10 @@ void WebRestart() {
Serial.println("Restarting... see you soon space cowboy!");
delay(1000);
ESP.restart();
+ } else {
+ body += "
Not allowed
";
+ body += returnHTMLfooter();
+ webserver.send(405, "text/html", body);
}
}
@@ -1071,13 +1082,15 @@ String returnStrSelected(byte savedValue, byte selectId) {
*/
// not really a webpage, but CSS is important for them :p
+/*
void WEBstyleCSS() {
webserver.send(200, "text/css", HTMLstyleCSS);
}
+*/
void WEB404() {
String body = FPSTR(HTMLheader);
- body += "
404 - not found
";
+ body += "
404 - not found
";
body += returnHTMLfooter();
webserver.send(404, "text/html", body);
}