Add option to disable BLE HID host advertising#3382
Open
Iemooon wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
CONFIG_ZMK_BLE_DISABLE_HOST_ADVto allow disabling BLE HID host advertising while keeping BLE enabled.This is useful for USB dongle receiver builds that need BLE for split central communication with peripherals, but should not advertise themselves as a pairable BLE HID device to host computers.
Details
When
CONFIG_ZMK_BLE_DISABLE_HOST_ADVis enabled,update_advertising()stops any active host advertising and returns without starting BLE HID advertising.BLE itself remains enabled, so split central behavior can continue to scan for and connect to split peripherals.
Use Case
A USB dongle receiver may need to:
This option supports that setup without requiring
CONFIG_ZMK_BLE=n, which would also disable the BLE functionality needed for split communication.Testing
Built and tested with a USB dongle receiver configuration using BLE split central communication.