summaryrefslogtreecommitdiff
path: root/src/components/ble/BatteryInformationService.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ble/BatteryInformationService.cpp')
-rw-r--r--src/components/ble/BatteryInformationService.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/ble/BatteryInformationService.cpp b/src/components/ble/BatteryInformationService.cpp
index 9a3f86f5..14589cb9 100644
--- a/src/components/ble/BatteryInformationService.cpp
+++ b/src/components/ble/BatteryInformationService.cpp
@@ -49,6 +49,7 @@ int BatteryInformationService::OnBatteryServiceRequested(uint16_t connectionHand
}
return 0;
}
+
void BatteryInformationService::NotifyBatteryLevel(uint16_t connectionHandle, uint8_t level) {
auto* om = ble_hs_mbuf_from_flat(&level, 1);
ble_gattc_notify_custom(connectionHandle, batteryLevelHandle, om);