matthias-bs / BresserWeatherSensorLW

Bresser 868 MHz Weather Sensor Radio Receiver based on ESP32/RP2040 and SX1262/SX1276 - sends data to a LoRaWAN Network
MIT License
12 stars 1 forks source link

Change Uplink Payload: Change sensor valid flags #43

Closed matthias-bs closed 5 months ago

matthias-bs commented 5 months ago

Old: Sensor valid flags (1 bit per sensor) in data uplink message, see https://github.com/matthias-bs/BresserWeatherSensorLW/blob/54a13e1b5bf7d521d7d93401aa0501067b64760a/src/AppLayer.cpp#L462

New: Encode as special values indicating invalid data/NaN, see https://github.com/matthias-bs/BresserWeatherSensorLW/blob/5833767153b5a9bd319d22918664da77d89bedf0/BresserWeatherSensorLWCfg.h#L435