pub enum Command {
ReadCo2AndTemperature,
ReadCo2,
GetFirmwareVersion,
SetSelfCalibrate(bool),
}Expand description
Commands understood by the MH-Z19C sensor.
Variants§
ReadCo2AndTemperature
Read CO₂ concentration and temperature from sensor. Requires firmware version 5 or higher.
ReadCo2
Read CO₂ concentration from sensor.
GetFirmwareVersion
Read out the firmware version of the sensor.
SetSelfCalibrate(bool)
Set self calibration enabled status.
Implementations§
Trait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more