Environment Sensing - Ambient Light GATT Service#
Provides ambient light sensor data in GATT characteristics. Designed for the Thunderboard smartphone app.
Functions#
void
sl_gatt_service_lux_on_event(sl_bt_msg_t *evt)
sl_status_t
sl_gatt_service_lux_get(float *lux)
Macros#
#define
SL_GATT_SERVICE_LUX_LUX_INVALID 0xFFFFFFFF
Function Documentation#
sl_gatt_service_lux_on_event#
void sl_gatt_service_lux_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_lux_get#
sl_status_t sl_gatt_service_lux_get (float * lux)
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
float * | [out] | lux | Ambient light illuminance (in lux). |
Getter for Ambient Light characteristic value. Returns
Status of the operation.
Note
To be implemented in user code.