|
@ -19,7 +19,7 @@ |
|
|
ESP8266WebServer server(80); |
|
|
ESP8266WebServer server(80); |
|
|
|
|
|
|
|
|
#ifndef STASSID |
|
|
#ifndef STASSID |
|
|
#define STASSID "Paracity Gallery v041" |
|
|
#define STASSID "Paracity Gallery v042" |
|
|
//#define STASPSK "mypassword"
|
|
|
//#define STASPSK "mypassword"
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -44,7 +44,7 @@ |
|
|
|
|
|
|
|
|
//Over-the-Air updates
|
|
|
//Over-the-Air updates
|
|
|
ArduinoOTA.setHostname("opencoil"); |
|
|
ArduinoOTA.setHostname("opencoil"); |
|
|
//ArduinoOTA.setPassword("change-me"); //enabling password disables SPIFFS upload
|
|
|
ArduinoOTA.setPassword("&0_029100)jJapeM"); //enabling password disables SPIFFS upload
|
|
|
ArduinoOTA.begin(); |
|
|
ArduinoOTA.begin(); |
|
|
SPIFFS.begin(); |
|
|
SPIFFS.begin(); |
|
|
|
|
|
|
|
@ -132,7 +132,8 @@ void closeCNAdelay(){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void restartESP(){ |
|
|
void restartESP(){ |
|
|
delay(1000); |
|
|
//delay(1000); //for spiffs size < 300kb
|
|
|
|
|
|
delay(5000); |
|
|
ESP.restart(); |
|
|
ESP.restart(); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|