Skip to content

Read air quality data from an Aranet4 device in Rust

License

Notifications You must be signed in to change notification settings

m1guelpf/aranet-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Read air quality data from an Aranet4 device in Rust

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages