Do not need to be setup to play with gpio or OTA
And reindent
This commit is contained in:
parent
f0b47e162c
commit
5007b652d9
@ -72,10 +72,8 @@ void setupWebServer(int bootmode) {
|
|||||||
server.on("/", handleRoot);
|
server.on("/", handleRoot);
|
||||||
server.on("/setup", handleSetup);
|
server.on("/setup", handleSetup);
|
||||||
server.on("/save", handleSave);
|
server.on("/save", handleSave);
|
||||||
if (bootmode == BOOTMODE_NORMAL){
|
|
||||||
server.on("/gpio", handleGpio);
|
server.on("/gpio", handleGpio);
|
||||||
server.on("/otamode", handleOTA);
|
server.on("/otamode", handleOTA);
|
||||||
}
|
|
||||||
server.onNotFound(handleNotFound);
|
server.onNotFound(handleNotFound);
|
||||||
server.begin();
|
server.begin();
|
||||||
Serial.println("HTTP server started");
|
Serial.println("HTTP server started");
|
||||||
|
@ -73,10 +73,9 @@ void setupWebServer(int bootmode) {
|
|||||||
server.on("/", handleRoot);
|
server.on("/", handleRoot);
|
||||||
server.on("/setup", handleSetup);
|
server.on("/setup", handleSetup);
|
||||||
server.on("/save", handleSave);
|
server.on("/save", handleSave);
|
||||||
if (bootmode == BOOTMODE_NORMAL){
|
|
||||||
server.on("/gpio", handleGpio);
|
server.on("/gpio", handleGpio);
|
||||||
server.on("/otamode", handleOTA);
|
server.on("/otamode", handleOTA);
|
||||||
}
|
|
||||||
server.onNotFound(handleNotFound);
|
server.onNotFound(handleNotFound);
|
||||||
server.begin();
|
server.begin();
|
||||||
Serial.println("HTTP server started");
|
Serial.println("HTTP server started");
|
||||||
|
Loading…
Reference in New Issue
Block a user