From eb1c19fc7f48112cb49cdb5ce5e7f4e6bb04d341 Mon Sep 17 00:00:00 2001 From: Matthias Prinke Date: Fri, 24 May 2024 18:02:54 +0200 Subject: [PATCH] Moved PAYLOAD_SIZE from BresserWeatherSensorLW.ino --- BresserWeatherSensorLWCfg.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BresserWeatherSensorLWCfg.h b/BresserWeatherSensorLWCfg.h index 9d5d1a1..ee8c040 100644 --- a/BresserWeatherSensorLWCfg.h +++ b/BresserWeatherSensorLWCfg.h @@ -49,6 +49,7 @@ // 20240520 Added definitions for AppLayer payload configuration // 20240521 Added UBATT_CH/USUPPLY_CH // 20240524 Added sensor feature flags +// Moved PAYLOAD_SIZE from BresserWeatherSensorLW.ino // // Note: // Depending on board package file date, either @@ -94,6 +95,10 @@ //#define ARDUINO_THINGPULSE_EPULSE_FEATHER #endif +// Uplink message payload size +// The maximum allowed for all data rates is 51 bytes. +const uint8_t PAYLOAD_SIZE = 51; + // Battery voltage thresholds for energy saving & deep-discharge prevention // If battery voltage <= BATTERY_WEAK [mV], MCU will sleep for SLEEP_INTERVAL_LONG