Added password to OTA handling

This commit is contained in:
Nis Wechselberg 2017-09-26 01:11:45 +02:00
parent 76bcb4d4c1
commit 250a15e7b1
5 changed files with 5 additions and 0 deletions

View file

@ -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();
} }

View file

@ -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();
} }

View file

@ -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();
} }

View file

@ -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();
} }

View file

@ -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();
} }