Environment Sensing - Sound Level GATT Service#

Provides microphone sound level data in GATT characteristics. Designed for the Thunderboard smartphone app.

Functions#

void
sl_status_t
sl_gatt_service_sound_get(float *sound_level)

Macros#

Function Documentation#

sl_gatt_service_sound_on_event#

void sl_gatt_service_sound_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_sound/sl_gatt_service_sound.h

sl_gatt_service_sound_get#

sl_status_t sl_gatt_service_sound_get (float * sound_level)
Parameters
[out]sound_level

Sound pressure level (in dB).

Getter for Sound Level characteristic value. Returns

  • Status of the operation.

Note

  • To be implemented in user code.


Definition at line 53 of file common/gatt_service_sound/sl_gatt_service_sound.h

Macro Definition Documentation#

SL_GATT_SERVICE_SOUND_INVALID#

#define SL_GATT_SERVICE_SOUND_INVALID
Value:
0x7FFF

Definition at line 43 of file common/gatt_service_sound/config/sl_gatt_service_sound_config.h