Extended battery information #889
-
Hi Is it possible to access new battery service v1.1 data as outlined here: https://www.bluetooth.com/specifications/specs/battery-service/ Specifically things like indicating to the host whether it's currently charging, and the ability to define devices with left and right batteries 3.2.1.2. Power State field seems it would satisfy the first one I had a quick look at NimBLE source, but I couldn't find any existing functions apart from setting and reading the battery power level, which works well for that A few people have asked over in the ESP32-BLE-Gamepad GitHub Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
This isn't built in to the HID class but the characteristics would just need to be added to the battery service like the battery level currently is, pretty easy to do. |
Beta Was this translation helpful? Give feedback.
Nope, that is what this is for:
NimBLE-Arduino/src/NimBLEHIDDevice.cpp
Line 340 in 351f7c3