Air Quality GATT Service#

Provides air quality sensor data in GATT characteristics. Designed for the Thunderboard smartphone app.

Functions#

void
sl_status_t
sl_gatt_service_gas_get(uint16_t *eco2, uint16_t *tvoc)

Function Documentation#

sl_gatt_service_gas_on_event#

void sl_gatt_service_gas_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_gas/sl_gatt_service_gas.h

sl_gatt_service_gas_get#

sl_status_t sl_gatt_service_gas_get (uint16_t *eco2, uint16_t *tvoc)
Parameters
[out]eco2

Equivalent CO2 level (in ppm).

[out]tvoc

Total Volatile Organic Compounds level (in ppb).

Getter for ECO2 and TVOC characteristic values. Returns

  • Status of the operation.

Note

  • To be implemented in user code.


Definition at line 54 of file common/gatt_service_gas/sl_gatt_service_gas.h

Macro Definition Documentation#

SL_GATT_SERVICE_GAS_ECO2_INVALID#

#define SL_GATT_SERVICE_GAS_ECO2_INVALID
Value:
0xFFFF

Definition at line 43 of file common/gatt_service_gas/config/sl_gatt_service_gas_config.h

SL_GATT_SERVICE_GAS_TVOC_INVALID#

#define SL_GATT_SERVICE_GAS_TVOC_INVALID
Value:
0xFFFF

Definition at line 47 of file common/gatt_service_gas/config/sl_gatt_service_gas_config.h