Crates.io | aranet |
lib.rs | aranet |
version | 0.2.0 |
source | src |
created_at | 2024-01-10 22:23:40.188602 |
updated_at | 2024-01-10 22:50:40.270167 |
description | Read current measurements from an Aranet4 device. |
homepage | |
repository | https://github.com/m1guelpf/aranet-rs |
max_upload_size | |
id | 1095640 |
size | 40,795 |
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.