Added password to OTA handling
This commit is contained in:
parent
76bcb4d4c1
commit
250a15e7b1
5 changed files with 5 additions and 0 deletions
|
@ -95,6 +95,7 @@ void setup_wifi() {
|
||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
}
|
}
|
||||||
ArduinoOTA.setHostname(ota_hostname);
|
ArduinoOTA.setHostname(ota_hostname);
|
||||||
|
ArduinoOTA.setPassword(ota_hostname);
|
||||||
ArduinoOTA.begin();
|
ArduinoOTA.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -113,6 +113,7 @@ void setup_wifi() {
|
||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
}
|
}
|
||||||
ArduinoOTA.setHostname(ota_hostname);
|
ArduinoOTA.setHostname(ota_hostname);
|
||||||
|
ArduinoOTA.setPassword(ota_hostname);
|
||||||
ArduinoOTA.begin();
|
ArduinoOTA.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,7 @@ void setup_wifi() {
|
||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
|
|
||||||
ArduinoOTA.setHostname(ota_hostname);
|
ArduinoOTA.setHostname(ota_hostname);
|
||||||
|
ArduinoOTA.setPassword(ota_hostname);
|
||||||
ArduinoOTA.begin();
|
ArduinoOTA.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -139,6 +139,7 @@ void setup_wifi() {
|
||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
}
|
}
|
||||||
ArduinoOTA.setHostname(ota_hostname);
|
ArduinoOTA.setHostname(ota_hostname);
|
||||||
|
ArduinoOTA.setPassword(ota_hostname);
|
||||||
ArduinoOTA.begin();
|
ArduinoOTA.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,6 +109,7 @@ void setup_wifi() {
|
||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
}
|
}
|
||||||
ArduinoOTA.setHostname(ota_hostname);
|
ArduinoOTA.setHostname(ota_hostname);
|
||||||
|
ArduinoOTA.setPassword(ota_hostname);
|
||||||
ArduinoOTA.begin();
|
ArduinoOTA.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue