Refactor serial bridge handling

This commit is contained in:
João Brázio
2025-07-09 11:03:35 +01:00
parent 97b51900f8
commit 04042e3ca0
5 changed files with 147 additions and 93 deletions

View File

@@ -57,9 +57,6 @@ build_flags =
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
-D MAX_NEIGHBOURS=8
; -D BRIDGE_OVER_SERIAL=Serial2
; -D BRIDGE_OVER_SERIAL_RX=34
; -D BRIDGE_OVER_SERIAL_TX=25
; -D MESH_PACKET_LOGGING=1
; -D MESH_DEBUG=1
; -D CORE_DEBUG_LEVEL=3
@@ -67,6 +64,28 @@ lib_deps =
${LilyGo_TLora_V2_1_1_6.lib_deps}
${esp32_ota.lib_deps}
[env:LilyGo_TLora_V2_1_1_6_Bridge]
extends = LilyGo_TLora_V2_1_1_6
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
+<helpers/ui/SSD1306Display.cpp>
+<../examples/simple_repeater>
build_flags =
${LilyGo_TLora_V2_1_1_6.build_flags}
-D ADVERT_NAME='"TLora-V2.1-1.6 Bridge"'
-D ADVERT_LAT=0.0
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
-D MAX_NEIGHBOURS=8
-D BRIDGE_OVER_SERIAL=Serial2
-D BRIDGE_OVER_SERIAL_RX=34
-D BRIDGE_OVER_SERIAL_TX=25
-D MESH_PACKET_LOGGING=1
; -D MESH_DEBUG=1
; -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]
extends = LilyGo_TLora_V2_1_1_6
build_flags =