Read current measurements from an Aranet4 device in Rust.
let device = aranet::connect().await?;
let measurements = device.measurements().await?;
dbg!(measurements);
// [src/main.rs:6] measurements = SensorData {
// со2: 962,
// battery: 76,
// humidity: 49,
// status: GREEN,
// pressure: 1017,
// interval: 300s,
// temperature: 25.75,
// since_last_update: 127s,
// }
Refer to the documentation on docs.rs for detailed usage instructions.
This project is licensed under the MIT License - see the LICENSE file for details.