From 16c1b90b1e5230527ac0505b653f6a31647c818b Mon Sep 17 00:00:00 2001 From: acidburns Date: Sun, 1 Feb 2026 22:54:07 +0100 Subject: [PATCH] Add payload codec test envs and enable serial debug --- include/config.h | 4 ++-- platformio.ini | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/include/config.h b/include/config.h index 59cfc60..4f5b724 100644 --- a/include/config.h +++ b/include/config.h @@ -73,8 +73,8 @@ constexpr uint8_t BATCH_QUEUE_DEPTH = 10; constexpr BatchRetryPolicy BATCH_RETRY_POLICY = BatchRetryPolicy::Keep; constexpr uint32_t WATCHDOG_TIMEOUT_SEC = 120; constexpr bool ENABLE_HA_DISCOVERY = true; -constexpr bool SERIAL_DEBUG_MODE = false; -constexpr bool SERIAL_DEBUG_DUMP_JSON = false; +constexpr bool SERIAL_DEBUG_MODE = true; +constexpr bool SERIAL_DEBUG_DUMP_JSON = true; constexpr bool LORA_SEND_BYPASS = false; constexpr uint8_t NUM_SENDERS = 1; diff --git a/platformio.ini b/platformio.ini index 277abd6..aaf3db0 100644 --- a/platformio.ini +++ b/platformio.ini @@ -58,3 +58,30 @@ lib_deps = build_flags = -DENABLE_TEST_MODE -DLORA_FREQUENCY_HZ=868E6 + +[env:lilygo-t3-v1-6-1-payload-test] +platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip +board = ttgo-lora32-v1 +framework = arduino +lib_deps = + sandeepmistry/LoRa@^0.8.0 + bblanchon/ArduinoJson@^6.21.5 + adafruit/Adafruit SSD1306@^2.5.9 + adafruit/Adafruit GFX Library@^1.11.9 + knolleary/PubSubClient@^2.8 +build_flags = + -DPAYLOAD_CODEC_TEST + +[env:lilygo-t3-v1-6-1-868-payload-test] +platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip +board = ttgo-lora32-v1 +framework = arduino +lib_deps = + sandeepmistry/LoRa@^0.8.0 + bblanchon/ArduinoJson@^6.21.5 + adafruit/Adafruit SSD1306@^2.5.9 + adafruit/Adafruit GFX Library@^1.11.9 + knolleary/PubSubClient@^2.8 +build_flags = + -DPAYLOAD_CODEC_TEST + -DLORA_FREQUENCY_HZ=868E6