Files
MeshCore/variants/tiny_relay/platformio.ini
csrutil fc0cf5f370 🔧 chore: update tiny_relay platformio.ini configuration
- Add ADVERT_LAT and ADVERT_LON definitions for both repeater and sensor variants
- Set MAX_NEIGHBOURS to 50 for improved network capacity
- Fix repeater build source filter path to include entire directory
2025-09-29 07:48:26 +08:00

51 lines
1.5 KiB
INI

[Tiny_Relay]
extends = stm32_base
board = tiny_relay
board_upload.maximum_size = 229376 ; 32kb for FS
build_flags = ${stm32_base.build_flags}
-D RADIO_CLASS=CustomSTM32WLx
-D WRAPPER_CLASS=CustomSTM32WLxWrapper
-D SPI_INTERFACES_COUNT=0
-D RX_BOOSTED_GAIN=true
; -D STM32WL_TCXO_VOLTAGE=1.6 ; defaults to 0 if undef
; -D LORA_TX_POWER=14 ; Defaults to 22 for HP, 14 is for LP version
-D LORA_TX_POWER=22 ; Enable 22dBm transmission
-D MAX_LORA_TX_POWER=22 ; Allow setting up to 22dBm in companion radio
-I variants/tiny_relay
build_src_filter = ${stm32_base.build_src_filter}
+<../variants/tiny_relay>
[env:Tiny_Relay_repeater]
extends = Tiny_Relay
build_flags = ${Tiny_Relay.build_flags}
-D ADVERT_NAME='"tiny_relay Repeater"'
-D ADVERT_LAT=0.0
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
-D MAX_NEIGHBOURS=50
build_src_filter = ${Tiny_Relay.build_src_filter}
+<../examples/simple_repeater>
[env:Tiny_Relay_sensor]
extends = Tiny_Relay
build_flags = ${Tiny_Relay.build_flags}
-D ADVERT_NAME='"tiny_relay Sensor"'
-D ADVERT_LAT=0.0
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
-D MAX_NEIGHBOURS=50
build_src_filter = ${Tiny_Relay.build_src_filter}
+<../examples/simple_sensor>
[env:Tiny_Relay_companion_radio_usb]
extends = Tiny_Relay
build_flags = ${Tiny_Relay.build_flags}
; -D FORMAT_FS=true
-D MAX_CONTACTS=100
-D MAX_GROUP_CHANNELS=8
-D MAX_LORA_TX_POWER=22
build_src_filter = ${Tiny_Relay.build_src_filter}
+<../examples/companion_radio/*.cpp>
lib_deps = ${Tiny_Relay.lib_deps}
densaugeo/base64 @ ~1.4.0