mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-01-28 11:24:22 +01:00
new ota test1
This commit is contained in:
parent
75bfd064d6
commit
33a33162f5
|
|
@ -20,7 +20,7 @@ lib_deps =
|
|||
sandeepmistry/LoRa@^0.8.0
|
||||
adafruit/Adafruit GFX Library @ 1.11.5
|
||||
adafruit/Adafruit SSD1306 @ 2.5.7
|
||||
ayushsharma82/AsyncElegantOTA@^2.2.7
|
||||
ayushsharma82/ElegantOTA@^3.1.0
|
||||
ottowinter/ESPAsyncWebServer-esphome@^3.0.0
|
||||
esphome/AsyncTCP-esphome@^2.0.0
|
||||
mikalhart/TinyGPSPlus @ 1.0.3
|
||||
|
|
@ -30,13 +30,13 @@ lib_deps =
|
|||
|
||||
[env:ttgo-lora32-v21]
|
||||
board = ttgo-lora32-v21
|
||||
build_flags = -Werror -Wall -DTTGO_T_LORA_V2_1
|
||||
build_flags = -Werror -Wall -DTTGO_T_LORA_V2_1 -DELEGANTOTA_USE_ASYNC_WEBSERVER=1
|
||||
|
||||
[env:heltec-lora32-v2]
|
||||
board = ttgo-lora32-v21
|
||||
build_flags = -Werror -Wall -DHELTEC_V2
|
||||
build_flags = -Werror -Wall -DHELTEC_V2 -DELEGANTOTA_USE_ASYNC_WEBSERVER=1
|
||||
|
||||
[env:heltec_wifi_kit_32_V3]
|
||||
board = heltec_wifi_kit_32_V3
|
||||
build_flags = -Werror -Wall -DHELTEC_V3
|
||||
build_flags = -Werror -Wall -DHELTEC_V3 -DELEGANTOTA_USE_ASYNC_WEBSERVER=1
|
||||
board_build.mcu = esp32s3
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
#include <ElegantOTA.h>
|
||||
#include <Arduino.h>
|
||||
#include <LoRa.h>
|
||||
#include <WiFi.h>
|
||||
|
|
@ -89,4 +90,5 @@ void loop() {
|
|||
DIGI_Utils::loop();
|
||||
}
|
||||
}
|
||||
ElegantOTA.loop();
|
||||
}
|
||||
|
|
@ -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…
Reference in a new issue