mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* refactor: ESP32 OTA lib-deps now selectively added
This commit is contained in:
parent
a4bb3782a4
commit
f861b68a09
9 changed files with 56 additions and 1 deletions
|
|
@ -40,8 +40,9 @@ extra_scripts = merge-bin.py
|
||||||
build_flags = ${arduino_base.build_flags}
|
build_flags = ${arduino_base.build_flags}
|
||||||
; -D ESP32_CPU_FREQ=80 ; change it to your need
|
; -D ESP32_CPU_FREQ=80 ; change it to your need
|
||||||
build_src_filter = ${arduino_base.build_src_filter}
|
build_src_filter = ${arduino_base.build_src_filter}
|
||||||
|
|
||||||
|
[esp32_ota]
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${arduino_base.lib_deps}
|
|
||||||
me-no-dev/ESPAsyncWebServer @ ^3.6.0
|
me-no-dev/ESPAsyncWebServer @ ^3.6.0
|
||||||
file://arch/esp32/AsyncElegantOTA
|
file://arch/esp32/AsyncElegantOTA
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
#ifdef ESP_PLATFORM
|
#ifdef ESP_PLATFORM
|
||||||
|
|
||||||
#include "ESP32Board.h"
|
#include "ESP32Board.h"
|
||||||
|
|
||||||
|
#if defined(ADMIN_PASSWORD) // Repeater or Room Server only
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <AsyncTCP.h>
|
#include <AsyncTCP.h>
|
||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
|
|
@ -29,4 +31,11 @@ bool ESP32Board::startOTAUpdate(const char* id, char reply[]) {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
bool ESP32Board::startOTAUpdate(const char* id, char reply[]) {
|
||||||
|
return false; // not supported
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,9 @@ build_flags =
|
||||||
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
||||||
+<../examples/simple_repeater>
|
+<../examples/simple_repeater>
|
||||||
+<helpers/ui/*.cpp>
|
+<helpers/ui/*.cpp>
|
||||||
|
lib_deps =
|
||||||
|
${Heltec_lora32_v2.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:Heltec_v2_room_server]
|
[env:Heltec_v2_room_server]
|
||||||
extends = Heltec_lora32_v2
|
extends = Heltec_lora32_v2
|
||||||
|
|
@ -49,6 +52,9 @@ build_flags =
|
||||||
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
||||||
+<helpers/ui/*.cpp>
|
+<helpers/ui/*.cpp>
|
||||||
+<../examples/simple_room_server>
|
+<../examples/simple_room_server>
|
||||||
|
lib_deps =
|
||||||
|
${Heltec_lora32_v2.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:Heltec_v2_terminal_chat]
|
[env:Heltec_v2_terminal_chat]
|
||||||
extends = Heltec_lora32_v2
|
extends = Heltec_lora32_v2
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,9 @@ build_flags =
|
||||||
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
||||||
+<helpers/ui/*.cpp>
|
+<helpers/ui/*.cpp>
|
||||||
+<../examples/simple_repeater>
|
+<../examples/simple_repeater>
|
||||||
|
lib_deps =
|
||||||
|
${Heltec_lora32_v3.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:Heltec_v3_room_server]
|
[env:Heltec_v3_room_server]
|
||||||
extends = Heltec_lora32_v3
|
extends = Heltec_lora32_v3
|
||||||
|
|
@ -52,6 +55,9 @@ build_flags =
|
||||||
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
||||||
+<helpers/ui/*.cpp>
|
+<helpers/ui/*.cpp>
|
||||||
+<../examples/simple_room_server>
|
+<../examples/simple_room_server>
|
||||||
|
lib_deps =
|
||||||
|
${Heltec_lora32_v3.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:Heltec_v3_terminal_chat]
|
[env:Heltec_v3_terminal_chat]
|
||||||
extends = Heltec_lora32_v3
|
extends = Heltec_lora32_v3
|
||||||
|
|
@ -140,6 +146,9 @@ build_flags =
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
||||||
+<../examples/simple_repeater>
|
+<../examples/simple_repeater>
|
||||||
|
lib_deps =
|
||||||
|
${Heltec_lora32_v3.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:Heltec_WSL3_room_server]
|
[env:Heltec_WSL3_room_server]
|
||||||
extends = Heltec_lora32_v3
|
extends = Heltec_lora32_v3
|
||||||
|
|
@ -154,6 +163,9 @@ build_flags =
|
||||||
-D ROOM_PASSWORD='"hello"'
|
-D ROOM_PASSWORD='"hello"'
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
lib_deps =
|
||||||
|
${Heltec_lora32_v3.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:Heltec_WSL3_companion_radio_ble]
|
[env:Heltec_WSL3_companion_radio_ble]
|
||||||
extends = Heltec_lora32_v3
|
extends = Heltec_lora32_v3
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,9 @@ build_flags =
|
||||||
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
|
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
|
||||||
+<helpers/ui/*.cpp>
|
+<helpers/ui/*.cpp>
|
||||||
+<../examples/simple_repeater>
|
+<../examples/simple_repeater>
|
||||||
|
lib_deps =
|
||||||
|
${LilyGo_T3S3_sx1262.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:LilyGo_T3S3_sx1262_terminal_chat]
|
[env:LilyGo_T3S3_sx1262_terminal_chat]
|
||||||
extends = LilyGo_T3S3_sx1262
|
extends = LilyGo_T3S3_sx1262
|
||||||
|
|
@ -77,6 +80,9 @@ build_flags =
|
||||||
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
|
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
|
||||||
+<helpers/ui/*.cpp>
|
+<helpers/ui/*.cpp>
|
||||||
+<../examples/simple_room_server>
|
+<../examples/simple_room_server>
|
||||||
|
lib_deps =
|
||||||
|
${LilyGo_T3S3_sx1262.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:LilyGo_T3S3_sx1262_companion_radio_usb]
|
[env:LilyGo_T3S3_sx1262_companion_radio_usb]
|
||||||
extends = LilyGo_T3S3_sx1262
|
extends = LilyGo_T3S3_sx1262
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,9 @@ build_flags =
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
; -D CORE_DEBUG_LEVEL=3
|
; -D CORE_DEBUG_LEVEL=3
|
||||||
|
lib_deps =
|
||||||
|
${LilyGo_TLora_V2_1_1_6.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:LilyGo_TLora_V2_1_1_6_terminal_chat]
|
[env:LilyGo_TLora_V2_1_1_6_terminal_chat]
|
||||||
extends = LilyGo_TLora_V2_1_1_6
|
extends = LilyGo_TLora_V2_1_1_6
|
||||||
|
|
@ -112,3 +115,6 @@ build_flags =
|
||||||
-D ROOM_PASSWORD='"hello"'
|
-D ROOM_PASSWORD='"hello"'
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
lib_deps =
|
||||||
|
${LilyGo_TLora_V2_1_1_6.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,9 @@ build_flags =
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
build_src_filter = ${Station_G2.build_src_filter}
|
build_src_filter = ${Station_G2.build_src_filter}
|
||||||
+<../examples/simple_repeater>
|
+<../examples/simple_repeater>
|
||||||
|
lib_deps =
|
||||||
|
${Station_G2.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:Station_G2_room_server]
|
[env:Station_G2_room_server]
|
||||||
extends = Station_G2
|
extends = Station_G2
|
||||||
|
|
@ -48,3 +51,6 @@ build_flags =
|
||||||
-D ROOM_PASSWORD='"hello"'
|
-D ROOM_PASSWORD='"hello"'
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
lib_deps =
|
||||||
|
${Station_G2.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,9 @@ build_flags =
|
||||||
-D ADMIN_PASSWORD='"password"'
|
-D ADMIN_PASSWORD='"password"'
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
lib_deps =
|
||||||
|
${Xiao_esp32_C3.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:Xiao_C3_Repeater_sx1268]
|
[env:Xiao_C3_Repeater_sx1268]
|
||||||
extends = Xiao_esp32_C3
|
extends = Xiao_esp32_C3
|
||||||
|
|
@ -51,3 +54,6 @@ build_flags =
|
||||||
-D ADMIN_PASSWORD='"password"'
|
-D ADMIN_PASSWORD='"password"'
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
lib_deps =
|
||||||
|
${Xiao_esp32_C3.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,9 @@ build_flags =
|
||||||
-D ADMIN_PASSWORD='"password"'
|
-D ADMIN_PASSWORD='"password"'
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
|
lib_deps =
|
||||||
|
${Xiao_S3_WIO.lib_deps}
|
||||||
|
${esp32_ota.lib_deps}
|
||||||
|
|
||||||
[env:Xiao_S3_WIO_terminal_chat]
|
[env:Xiao_S3_WIO_terminal_chat]
|
||||||
extends = Xiao_S3_WIO
|
extends = Xiao_S3_WIO
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue