mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 14:37:05 +00:00
new ota test1
This commit is contained in:
parent
75bfd064d6
commit
33a33162f5
3 changed files with 9 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#include <ESPAsyncWebServer.h>
|
||||
#include <AsyncElegantOTA.h>
|
||||
#include <ElegantOTA.h>
|
||||
#include <AsyncTCP.h>
|
||||
#include <SPIFFS.h>
|
||||
#include <WiFi.h>
|
||||
|
|
@ -328,9 +328,9 @@ namespace Utils {
|
|||
});
|
||||
|
||||
if (Config.ota.username != "" && Config.ota.password != "") {
|
||||
AsyncElegantOTA.begin(&server, Config.ota.username.c_str(), Config.ota.password.c_str());
|
||||
ElegantOTA.begin(&server, Config.ota.username.c_str(), Config.ota.password.c_str());
|
||||
} else {
|
||||
AsyncElegantOTA.begin(&server);
|
||||
ElegantOTA.begin(&server);
|
||||
}
|
||||
|
||||
server.on("/process_form.php", HTTP_POST, [](AsyncWebServerRequest *request){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue