From 22f3fb4d4dd33bdb81079d28c83b3716d2f652fb Mon Sep 17 00:00:00 2001 From: Matthias Wientapper Date: Sun, 18 Jan 2026 11:42:38 +0100 Subject: [PATCH] platformio.ini: Adjust defaults for LoRa frequency and advert interval limits --- platformio.ini | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/platformio.ini b/platformio.ini index 75d37e86..04a23471 100644 --- a/platformio.ini +++ b/platformio.ini @@ -23,12 +23,17 @@ lib_deps = adafruit/RTClib @ ^2.1.3 melopero/Melopero RV3028 @ ^1.1.0 electroniccats/CayenneLPP @ 1.6.1 -build_flags = -w -DNDEBUG -DRADIOLIB_STATIC_ONLY=1 -DRADIOLIB_GODMODE=1 - -D LORA_FREQ=869.525 - -D LORA_BW=250 - -D LORA_SF=11 +build_flags = -w -DNDEBUG + -D LORA_FREQ=869.618 + -D LORA_BW=62.5 + -D LORA_SF=8 + -D LORA_CR=8 + ; -D ENABLE_PRIVATE_KEY_IMPORT=1 ; NOTE: comment these out for more secure firmware -D ENABLE_PRIVATE_KEY_EXPORT=1 + ; + -D RADIOLIB_STATIC_ONLY=1 + -D RADIOLIB_GODMODE=1 -D RADIOLIB_EXCLUDE_CC1101=1 -D RADIOLIB_EXCLUDE_RF69=1 -D RADIOLIB_EXCLUDE_SX1231=1 @@ -43,6 +48,15 @@ build_flags = -w -DNDEBUG -DRADIOLIB_STATIC_ONLY=1 -DRADIOLIB_GODMODE=1 -D RADIOLIB_EXCLUDE_BELL=1 -D RADIOLIB_EXCLUDE_RTTY=1 -D RADIOLIB_EXCLUDE_SSTV=1 + ; + -D MIN_LOCAL_ADVERT_INTERVAL=60 + -D MAX_LOCAL_ADVERT_INTERVAL=10080 ; weekly + -D DEF_LOCAL_ADVERT_INTERVAL=1 ; default to 2 minutes for NEW installs + -D MIN_FLOOD_ADVERT_INTERVAL=48 + -D MAX_FLOOD_ADVERT_INTERVAL=8064 ; yearly + -D DEF_FLOOD_ADVERT_INTERVAL=48 ; default to 12 hours for NEW installs + ; -D NO_BOOT_ADVERT=1 ; disable boot advertisement + ; -D STEALTH_MODE=1 ; disable all advertisements and DISCOVER_REQ build_src_filter = +<*.cpp> +