Set of APIs for WSTK sensors plugin. More...

Functions

EmberStatus emberAfPluginWstkSensorsGetSample (uint32_t *rhData, int32_t *tData)
 Read a sample of the temperature and relative humidity values from the WSTK Si7013 sensors. More...
 

Detailed Description

Set of APIs for WSTK sensors plugin.

See wstk-sensors.h for source code.

Function Documentation

◆ emberAfPluginWstkSensorsGetSample()

EmberStatus emberAfPluginWstkSensorsGetSample ( uint32_t *  rhData,
int32_t *  tData 
)

Read a sample of the temperature and relative humidity values from the WSTK Si7013 sensors.

Parameters
rhDataA pointer to a 32-bit unsigned integer where the relative humidity sample is written.
tDataA pointer to a 32-bit signed integer where the temperature is written. Temperature is sampled in "millicelsius".
Returns
An EmberStatus value of EMBER_SUCCESS if the relative humidity and temperature sample were successfully read from the Si7013 sensors. Otherwise, an EmberStatus value of EMBER_ERR_FATAL.