8000 Notify the batteryLevel change (#4517) · Norbert21059/arduino-esp32@3274602 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3274602

Browse files
authored
Notify the batteryLevel change (espressif#4517)
1 parent 534f081 commit 3274602

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/BLE/src/BLEHIDDevice.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ BLECharacteristic* BLEHIDDevice::protocolMode() {
194194

195195
void BLEHIDDevice::setBatteryLevel(uint8_t level) {
196196
m_batteryLevelCharacteristic->setValue(&level, 1);
197+
m_batteryLevelCharacteristic->notify();
197198
}
198199
/*
199200
* @brief Returns battery level characteristic

0 commit comments

Comments
 (0)
0