Swift Pair module
The Swift Pair module is used to enable or disable the Swift Pair Bluetooth advertising payload depending on the selected Bluetooth peer (used local identity). The module distinguishes between the dongle peer and the general Bluetooth peers.
Module events
Source Module |
Input Event |
This Module |
Output Event |
Sink Module |
---|---|---|---|---|
|
|
|||
|
Note
See the Application overview for more information about the event-based communication in the nRF Desktop application and about how to read this table.
Configuration
To use the Swift Pair module, you must enable the following Kconfig options:
CONFIG_BT_ADV_PROV_SWIFT_PAIR
- The nRF Desktop’s Bluetooth LE advertising module uses the Bluetooth LE advertising providers to generate advertising and scan response data. The Swift Pair advertising data provider (CONFIG_BT_ADV_PROV_SWIFT_PAIR
) is used to add the Swift Pair payload to the advertising data. The Swift Pair module uses API of the Swift Pair advertising data provider and depending on the application local identity it enables or disables the Swift Pair advertising payload.CONFIG_CAF_BLE_COMMON_EVENTS
- The module updates the Fast Pair advertising payload by reacting on the application events related to Bluetooth. See nRF Desktop: Bluetooth for Bluetooth configuration in the nRF Desktop.CONFIG_DESKTOP_BLE_DONGLE_PEER_ENABLE - The module dynamically enables or disables the Swift Pair advertising payload for the dongle peer and for other Bluetooth peers relying on the values of the following Kconfig options:
If the dongle peer is disabled, there is no reason to use the module. The Swift Pair advertising data provider can be simply enabled or disabled during a build time through a dedicated Kconfig option.
Set the CONFIG_DESKTOP_SWIFT_PAIR Kconfig option to enable the module. This option automatically selects the CONFIG_DESKTOP_BLE_DONGLE_PEER_ID_INFO Kconfig option to enable the dongle peer ID information event.
Implementation details
The module is an early subscriber for ble_peer_operation_event
.
This allows the module to enable or disable the Swift Pair advertising payload just before the Bluetooth advertising starts.
The module is a subscriber for ble_dongle_peer_event
.
This allows the module to track the application local identity of the dongle peer.