aranet

Crates.ioaranet
lib.rsaranet
version0.2.0
sourcesrc
created_at2024-01-10 22:23:40.188602
updated_at2024-01-10 22:50:40.270167
descriptionRead current measurements from an Aranet4 device.
homepage
repositoryhttps://github.com/m1guelpf/aranet-rs
max_upload_size
id1095640
size40,795
Miguel Piedrafita (m1guelpf)

documentation

README

aranet-rs

Read current measurements from an Aranet4 device in Rust.

crates.io download count badge docs.rs

Usage

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Commit count: 0

cargo fmt