summaryrefslogtreecommitdiff
path: root/src/components/ble/BatteryInformationService.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-07-11 16:55:06 +0200
committerJean-François Milants <jf@codingfield.com>2021-07-11 16:55:06 +0200
commite21f6a7f414d1f832e8fddfeaab3b9de05aa3459 (patch)
treea4ebbc3a74ba7daf87aa99c0eafcb0e9e7bc6c35 /src/components/ble/BatteryInformationService.h
parent6a91b83b12ef849f68d54f490153b02f0ecf58dc (diff)
Notify battery level every 10 minutes when connected to a BLE host.
Refactor battery percent : only use uint8_t to store the battery % remaining.
Diffstat (limited to 'src/components/ble/BatteryInformationService.h')
-rw-r--r--src/components/ble/BatteryInformationService.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ble/BatteryInformationService.h b/src/components/ble/BatteryInformationService.h
index 7d060909..1303fd6c 100644
--- a/src/components/ble/BatteryInformationService.h
+++ b/src/components/ble/BatteryInformationService.h
@@ -17,7 +17,7 @@ namespace Pinetime {
void Init();
int OnBatteryServiceRequested(uint16_t connectionHandle, uint16_t attributeHandle, ble_gatt_access_ctxt* context);
-
+ void NotifyBatteryLevel(uint16_t connectionHandle, uint8_t level);
private:
Controllers::Battery& batteryController;
static constexpr uint16_t batteryInformationServiceId {0x180F};