Environment Sensing - Relative Humidity and Temperature GATT Service#
Provides relative humidity and temperature sensor data in GATT characteristics. Designed for the Thunderboard smartphone app.
Functions#
void
sl_gatt_service_rht_on_event(sl_bt_msg_t *evt)
sl_status_t
sl_gatt_service_rht_get(uint32_t *rh, int32_t *t)
Function Documentation#
sl_gatt_service_rht_on_event#
void sl_gatt_service_rht_on_event (sl_bt_msg_t * evt)
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_bt_msg_t * | [in] | evt | Event coming from the Bluetooth stack. |
Bluetooth stack event handler.
sl_gatt_service_rht_get#
sl_status_t sl_gatt_service_rht_get (uint32_t * rh, int32_t * t)
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t * | [out] | rh | Relative humidity (in 0.001 percent). |
int32_t * | [out] | t | Temperature (in 0.001 Celsius). |
Getter for Humidity and Temperature characteristic values. Returns
Status of the operation.
Note
To be implemented in user code.