added password for updating firmware ota
This commit is contained in:
parent
448ca50a79
commit
fdb86933b2
@ -37,9 +37,15 @@
|
||||
Serial.print("IP address: ");
|
||||
Serial.println(WiFi.softAPIP());
|
||||
|
||||
//Over-the-Air updates
|
||||
ArduinoOTA.setHostname("ESP8266");
|
||||
ArduinoOTA.setPassword("change-me");
|
||||
ArduinoOTA.begin();
|
||||
|
||||
//File system begin
|
||||
SPIFFS.begin();
|
||||
|
||||
|
||||
//redirect all traffic to index.html
|
||||
server.onNotFound([]() {
|
||||
if(!handleFileRead(server.uri())){
|
||||
|
Loading…
Reference in New Issue
Block a user