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
No known key found for this signature in database
GPG key ID: 56A1490716A324DD
5 changed files with 147 additions and 93 deletions

View file

@ -35,14 +35,27 @@ build_flags = ${waveshare_rp2040_lora.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=9
; -D BRIDGE_OVER_SERIAL_TX=8
; -D MESH_PACKET_LOGGING=1
; -D MESH_DEBUG=1
build_src_filter = ${waveshare_rp2040_lora.build_src_filter}
+<../examples/simple_repeater>
[env:waveshare_rp2040_lora_Bridge]
extends = waveshare_rp2040_lora
build_flags = ${waveshare_rp2040_lora.build_flags}
-D ADVERT_NAME='"RP2040-LoRa 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=9
-D BRIDGE_OVER_SERIAL_TX=8
-D MESH_PACKET_LOGGING=1
; -D MESH_DEBUG=1
build_src_filter = ${waveshare_rp2040_lora.build_src_filter}
+<../examples/simple_repeater>
[env:waveshare_rp2040_lora_room_server]
extends = waveshare_rp2040_lora
build_flags = ${waveshare_rp2040_lora.build_flags}