scd30-modbus

Crates.ioscd30-modbus
lib.rsscd30-modbus
version0.3.0
sourcesrc
created_at2022-10-04 14:23:51.580221
updated_at2024-02-12 15:42:10.153521
descriptionSCD30 driver implementation
homepage
repositoryhttps://github.com/teamplayer3/scd30-modbus-rs.git
max_upload_size
id679842
size31,782
Alexander Hübener (teamplayer3)

documentation

README

SCD30 modbus driver

Build Status License Crates.io Documentation

Implementation of an SCD30 sensor driver using the modbus protocol written in rust. This driver is written async/await style. Currently the smol runtime is supported.

For more information about the sensor here.

Example

let serial = ...; // serial bus to use

let mut driver = Scd30::new(serial);

driver.set_measurement_interval(Duration::from_secs(15)).await.unwrap();
driver.start_measuring().await.unwrap();

let measurements = driver.read().await.unwrap().unwrap();
Commit count: 13

cargo fmt