scd30-modbus 0.3.0

SCD30 driver implementation
Documentation

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();