feat(docs): Add pointers for peripheral battery monitoring (#2177)

Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>

Fixes #2166
This commit is contained in:
Dennis
2024-02-18 06:51:09 +01:00
committed by GitHub
parent 0f49fa9ae4
commit 604af2ebd3
2 changed files with 12 additions and 1 deletions

View File

@@ -28,6 +28,17 @@ On macOS the BLE battery reporting packets can cause the computer to wakeup from
:::
### Peripheral battery monitoring
You can [configure ZMK to allow support for peripheral battery monitoring over BLE](system.md#split-keyboards) (e.g. when having a split keyboard with two independent and wirelessly connected sides).
If you want to report the battery levels of both sides of a split keyboard, you should have both `CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY` and `CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING` set to `y`.
:::note[Displaying both battery levels on your host]
Host support for multiple battery levels is undefined. It appears that in most of the cases only the main battery is being reported. In order to correctly display all the battery values, you probably need a special application or script.
:::
### Devicetree
Applies to: [`/chosen` node](https://docs.zephyrproject.org/3.5.0/build/dts/intro-syntax-structure.html#aliases-and-chosen-nodes)