Environment Sensing - Air Pressure GATT Service#

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

Functions#

void
sl_status_t

Macros#

Function Documentation#

sl_gatt_service_pressure_on_event#

void sl_gatt_service_pressure_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_pressure/sl_gatt_service_pressure.h

sl_gatt_service_pressure_get#

sl_status_t sl_gatt_service_pressure_get (float *pressure)
Parameters
[out]pressure

Barometric pressure (in millibars).

Getter for Pressure characteristic value. Returns

  • Status of the operation.

Note

  • To be implemented in user code.


Definition at line 53 of file common/gatt_service_pressure/sl_gatt_service_pressure.h

Macro Definition Documentation#

SL_GATT_SERVICE_PRESSURE_INVALID#

#define SL_GATT_SERVICE_PRESSURE_INVALID
Value:
0xFFFFFFFF

Definition at line 43 of file common/gatt_service_pressure/config/sl_gatt_service_pressure_config.h