Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Functions
lampda::hal::ble::services::battery Namespace Reference

OTA battery level service. More...

Functions

void init (const uint8_t batteryLevel, const bool addToAdvertised)
 Init the service, with an initial value (0-100)
 
void write_battery_level (const uint8_t batteryLevel)
 update battery level (0-100)
 
void notify_battery_level (const uint8_t batteryLevel)
 notify the connected device of a battery level (0-100)
 

Detailed Description

OTA battery level service.