Bond Management Service (BMS)
Overview
This library implements the Bond Management Service with the corresponding set of characteristics defined in the Bond Management Service Specification.
You can configure the service to support your desired feature set of bond management operations. All the BMS features in the “LE transport only” mode are supported:
Delete the bond of the requesting device.
Delete all bonds on the server.
Delete all bonds on the server except the one of the requesting device.
You can enable each feature when initializing the library.
Deleting the bonds
The server deletes bonding information on client’s request right away when there is no active Bluetooth® Low Energy connection associated with a bond. Otherwise, the server removes the bond for a given peer when it disconnects.
Configuration
Set the CONFIG_BLE_BMS Kconfig option to enable the service.
Initialization
The service instance is declared using the BLE_BMS_DEF macro, specifying the name of the instance.
The service is initialized by calling the ble_bms_init() function.
See the ble_bms_config struct for configuration details, in addition to the BMS specification.
Usage
Events from the service are forwarded through the event handler specified during initialization.
For a full list of events see the ble_bms_evt_type enum.
Dependencies
This service has the following Bare Metal dependencies:
SoftDevice (peripheral role) -
CONFIG_SOFTDEVICE_PERIPHERALSoftDevice handler (Bluetooth LE) -
CONFIG_NRF_SDH_BLE
API documentation
include/bluetooth/services/ble_bms.hsubsys/bluetooth/services/ble_bms/