Expand description
Winsen Infrared CO2 Module MH-Z19 / MH-Z19B / MH-Z14 serial “api” implementation.
This crates proposes two kinds of functions:
- functions for parsing response read from the uart
- functions to create command payload to send to the sensor though the uart.
Enums§
Functions§
- calibrate_
span_ point - Create a command to calibrate the span point.
- calibrate_
zero_ point - Create a command to calibrate the zero point.
- parse_
gas_ concentration_ ppm - Get the CO2 gas concentration in ppm from a response packet.
- parse_
gas_ contentration_ ppm Deprecated - Get the CO2 gas concentration in ppm from a response packet.
- parse_
payload - Extract the payload from a packet, validating packet length, checksum & header.
- read_
gas_ concentration - Create a command to read the gas concentration of the sensor.
- set_
automatic_ baseline_ correction - Create a command to enable or disable Automatic Baseline Correction (ABC)
- set_
detection_ range - Create a command to set the sensor detection range (MH-Z19B only).
Type Aliases§
- Packet
- Both input and output packets are 9 bytes long