Browse Source

added password for updating firmware ota

master
dennisdebel 5 months ago
parent
commit
fdb86933b2
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      otasta/otasta.ino

+ 6
- 0
otasta/otasta.ino View File

@ -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…
Cancel
Save