IoT Drivers  v3.3.0 (S2022)
Engineering in Software Technology
Basic MH-Z19 driver functions

Commonly used functions. Here you you will find the functions you normally will need. More...

Collaboration diagram for Basic MH-Z19 driver functions:

Functions

mh_z19_returnCode_t mh_z19_takeMeassuring (void)
 Perform a new CO2 meassuring. More...
 
mh_z19_returnCode_t mh_z19_getCo2Ppm (uint16_t *ppm)
 Get latest CO2 value. More...
 

Detailed Description

Commonly used functions. Here you you will find the functions you normally will need.

Function Documentation

◆ mh_z19_getCo2Ppm()

mh_z19_returnCode_t mh_z19_getCo2Ppm ( uint16_t *  ppm)

Get latest CO2 value.

Parameters
[out]ppmpointer to the variable where the ppm value will be returned.
Returns
Result of the call - see mh_z19_returnCode_t.

◆ mh_z19_takeMeassuring()

mh_z19_returnCode_t mh_z19_takeMeassuring ( void  )

Perform a new CO2 meassuring.

Ask the module to take a new meassuring.

Note
Must be performed before a call to mh_z19_getCo2Ppm.
Returns
Result of the call - see mh_z19_returnCode_t.