8000 Notify after setBatteryLevel · BirdAPI/esp32-snippets@2c256fc · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c256fc

Browse files
authored
Notify after setBatteryLevel
This was discussed in nkolban#739, but never implemented.
1 parent bf4fbde commit 2c256fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp_utils/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)
< 2921 /main>
0