pub fn parse_aranet_radon_gatt(data: &[u8]) -> Result<CurrentReading>Expand description
Parse Aranet Radon readings from GATT characteristic (f0cd3003 or f0cd1504).
Format (47 bytes):
- Bytes 0-1: Device type marker (0x0003 for radon)
- Bytes 2-3: Interval (LE16, seconds)
- Bytes 4-5: Seconds since update (LE16)
- Byte 6: Battery (0-100%)
- Bytes 7-8: Temperature (LE16, raw / 20 = °C)
- Bytes 9-10: Pressure (LE16, raw / 10 = hPa)
- Bytes 11-12: Humidity (LE16, raw / 10 = %)
- Bytes 13-16: Radon concentration (LE32, Bq/m³)
- Byte 17: Status/color
- Bytes 18-21: 24h average time (LE32)
- Bytes 22-25: 24h average value (LE32, Bq/m³)
- Bytes 26-29: 7d average time (LE32)
- Bytes 30-33: 7d average value (LE32, Bq/m³)
- Bytes 34-37: 30d average time (LE32)
- Bytes 38-41: 30d average value (LE32, Bq/m³)
Note: If an average value >= 0xff000000, it indicates the average is still being calculated (in progress) and is not yet available.