From fdb86933b23fc06153380e4e1032cdbf0cd1c8bb Mon Sep 17 00:00:00 2001 From: dennisdebel Date: Tue, 18 Aug 2020 23:26:04 +0200 Subject: [PATCH] added password for updating firmware ota --- otasta/otasta.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/otasta/otasta.ino b/otasta/otasta.ino index 6259aec..af9f290 100644 --- a/otasta/otasta.ino +++ b/otasta/otasta.ino @@ -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())){