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_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
[in]evt

Event coming from the Bluetooth stack.

Bluetooth stack event handler.


Definition at line 45 of file common/gatt_service_rht/sl_gatt_service_rht.h

sl_gatt_service_rht_get#

sl_status_t sl_gatt_service_rht_get (uint32_t *rh, int32_t *t)
Parameters
[out]rh

Relative humidity (in 0.001 percent).

[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.


Definition at line 54 of file common/gatt_service_rht/sl_gatt_service_rht.h

Macro Definition Documentation#

SL_GATT_SERVICE_RHT_RH_INVALID#

#define SL_GATT_SERVICE_RHT_RH_INVALID
Value:
0xFFFF

Definition at line 43 of file common/gatt_service_rht/config/sl_gatt_service_rht_config.h

SL_GATT_SERVICE_RHT_T_INVALID#

#define SL_GATT_SERVICE_RHT_T_INVALID
Value:
0x7FFF

Definition at line 47 of file common/gatt_service_rht/config/sl_gatt_service_rht_config.h