mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 06:26:46 +00:00
OTA security added
This commit is contained in:
parent
310b3afe59
commit
a396c3a9bf
4 changed files with 25 additions and 5 deletions
|
|
@ -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!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue