mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-28 16:52:33 +01:00
OTA security added
This commit is contained in:
@@ -276,7 +276,11 @@ void startOTAServer() {
|
||||
request->send(SPIFFS, "/index2.html", "text/html");
|
||||
});
|
||||
|
||||
AsyncElegantOTA.begin(&server);
|
||||
if (Config.ota.username != "" && Config.ota.password != "") {
|
||||
AsyncElegantOTA.begin(&server, Config.ota.username.c_str(), Config.ota.password.c_str());
|
||||
} else {
|
||||
AsyncElegantOTA.begin(&server);
|
||||
}
|
||||
server.begin();
|
||||
Serial.println("init : OTA Server ... done!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user