Switch LoRa batch payload to present-mask schema v3

BREAKING CHANGE: schema v2 is no longer supported.

Replaces fixed dt_s timing with a 30-bit present_mask while keeping MQTT JSON unchanged.
This commit is contained in:
2026-02-13 23:18:56 +01:00
parent 7ad0a16a8d
commit c58e1627f4
3 changed files with 143 additions and 43 deletions

View File

@@ -6,7 +6,7 @@ struct BatchInput {
uint16_t sender_id;
uint16_t batch_id;
uint32_t t_last;
uint8_t dt_s;
uint32_t present_mask;
uint8_t n;
uint16_t battery_mV;
uint8_t err_m;