Extended battery information #889
Answered
by
h2zero
lemmingDev
asked this question in
Q&A
|
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 |
Answered by
h2zero
Feb 13, 2025
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. |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Nope, that is what this is for:
NimBLE-Arduino/src/NimBLEHIDDevice.cpp
Line 340 in 351f7c3