fixup! add documentation for BT_DISCONNECT behavior
This commit is contained in:
parent
14767c07b8
commit
8a19cf76dd
1 changed files with 13 additions and 6 deletions
|
@ -13,6 +13,11 @@ computer/laptop/keyboard should receive the keyboard input; many of the commands
|
|||
When pairing to a host device ZMK saves bond information to the selected profile. It will not replace this when you initiate pairing with another device. To pair with a new device select an unused profile with `BT_SEL`, `BT_NXT` or `BT_PRV` bindings, or by clearing an existing profile using `BT_CLR`.
|
||||
|
||||
A ZMK device may show as "connected" on multiple hosts at the same time. This is working as intended, and only the host associated with the active profile will receive keystrokes.
|
||||
|
||||
An inactive connected profile can be explicitly disconnected using the `BT_DISCONNECT` behavior. This can be helpful in
|
||||
cases when host devices behave differently when a bluetooth keyboard is connected, for example by hiding their on-screen
|
||||
keyboard.
|
||||
|
||||
:::
|
||||
|
||||
## Bluetooth Command Defines
|
||||
|
@ -29,11 +34,13 @@ This will allow you to reference the actions defined in this header such as `BT_
|
|||
Here is a table describing the command for each define:
|
||||
|
||||
| Define | Action |
|
||||
| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `BT_CLR` | Clear bond information between the keyboard and host for the selected profile. |
|
||||
| `BT_NXT` | Switch to the next profile, cycling through to the first one when the end is reached. |
|
||||
| `BT_PRV` | Switch to the previous profile, cycling through to the last one when the beginning is reached. |
|
||||
| `BT_SEL` | Select the 0-indexed profile by number. Please note: this definition must include a number as an argument in the keymap to work correctly. eg. `BT_SEL 0` |
|
||||
| `BT_DISCONNECT` | Disconnect from the 0-indexed profile by number, if it's currently connected and inactive. Please note: this definition must include a number as an |
|
||||
| | argument in the keymap to work correctly. eg. `BT_DISCONNECT 0` |
|
||||
|
||||
:::note Selected profile persistence
|
||||
The profile that is selected by the `BT_SEL`/`BT_PRV`/`BT_NXT` actions will be saved to flash storage and hence persist across restarts and firmware flashes.
|
||||
|
|
Loading…
Add table
Reference in a new issue