Battery GATT Service#
Provides battery sensor data in GATT characteristics. Designed for the Thunderboard smartphone app.
Function Documentation#
sl_gatt_service_battery_on_event#
void sl_gatt_service_battery_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_battery/sl_gatt_service_battery.h
sl_gatt_service_battery_get_level#
uint8_t sl_gatt_service_battery_get_level (void )
Parameters
N/A |
Getter for Battery Level characteristic value. Returns
Battery charge level percent (0..100).
Note
To be implemented in user code.
Definition at line
52
of file common/gatt_service_battery/sl_gatt_service_battery.h
sl_gatt_service_battery_get_type#
uint8_t sl_gatt_service_battery_get_type (void )
Parameters
N/A |
Getter for Power Source characteristic value. Returns
Power source type represented as an integer.
Note
To be implemented in user code.
Definition at line
59
of file common/gatt_service_battery/sl_gatt_service_battery.h