Function parse_aranet2_reading

Source
pub fn parse_aranet2_reading(data: &[u8]) -> Result<CurrentReading>
Expand description

Parse Aranet2 current readings (temperature and humidity only).

Format (7 bytes):

  • bytes 0-1: Temperature (u16 LE, /20 for °C)
  • byte 2: Humidity (u8)
  • byte 3: Battery (u8)
  • byte 4: Status (u8)
  • bytes 5-6: Interval (u16 LE, seconds)