|
|
|
|
|
|
|
|
ESP.restart(); |
|
|
ESP.restart(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Port defaults to 8266 |
|
|
|
|
|
// ArduinoOTA.setPort(8266); |
|
|
|
|
|
|
|
|
|
|
|
// Hostname defaults to esp8266-[ChipID] |
|
|
|
|
|
ArduinoOTA.setHostname("myesp8266"); |
|
|
|
|
|
|
|
|
// setup OTA |
|
|
|
|
|
ArduinoOTA.setPort(8266); |
|
|
|
|
|
ArduinoOTA.setHostname("ESP_Treppenlicht"); |
|
|
|
|
|
|
|
|
// No authentication by default |
|
|
// No authentication by default |
|
|
// ArduinoOTA.setPassword("admin"); |
|
|
|
|
|
|
|
|
ArduinoOTA.setPassword("admin"); |
|
|
|
|
|
|
|
|
// Password can be set with it's md5 value as well |
|
|
// Password can be set with it's md5 value as well |
|
|
// MD5(admin) = 21232f297a57a5a743894a0e4a801fc3 |
|
|
// MD5(admin) = 21232f297a57a5a743894a0e4a801fc3 |