|
@ -37,9 +37,15 @@ |
|
|
Serial.print("IP address: "); |
|
|
Serial.print("IP address: "); |
|
|
Serial.println(WiFi.softAPIP()); |
|
|
Serial.println(WiFi.softAPIP()); |
|
|
|
|
|
|
|
|
|
|
|
//Over-the-Air updates
|
|
|
|
|
|
ArduinoOTA.setHostname("ESP8266"); |
|
|
|
|
|
ArduinoOTA.setPassword("change-me"); |
|
|
ArduinoOTA.begin(); |
|
|
ArduinoOTA.begin(); |
|
|
|
|
|
|
|
|
|
|
|
//File system begin
|
|
|
SPIFFS.begin(); |
|
|
SPIFFS.begin(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//redirect all traffic to index.html
|
|
|
//redirect all traffic to index.html
|
|
|
server.onNotFound([]() { |
|
|
server.onNotFound([]() { |
|
|
if(!handleFileRead(server.uri())){ |
|
|
if(!handleFileRead(server.uri())){ |
|
|