Pairing options

C

#define BLE_SMP_OPTION_NONE                                 (0x00U)
#define BLE_SMP_OPTION_BONDING                              (0x01U)
#define BLE_SMP_OPTION_MITM                                 (0x04U)
#define BLE_SMP_OPTION_SECURE_CONNECTION                    (0x08U)
#define BLE_SMP_OPTION_KEYPRESS                             (0x10U)

Description

Defines pairing options for Bluetooth Low Energy Security Manager Protocol (SMP).

Note

Possible combinations are :- BLE_SMP_OPTION_NONE : No bonding, use LE legacy pairing.- BLE_SMP_OPTION_BONDING : Bonding requested, use LE legacy pairing.- BLE_SMP_OPTION_SECURE_CONNECTION : No bonding, prefer LE Secure Connections if supported, otherwise use LE legacy pairing.- BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_SECURE_CONNECTION : Bonding requested, prefer LE Secure Connections if supported, otherwise use LE legacy pairing.- BLE_SMP_OPTION_MITM : Man-In-The-Middle (MITM) protection required, no bonding, use LE legacy pairing.- BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_MITM : Bonding requested, MITM protection required, use LE legacy pairing.- BLE_SMP_OPTION_MITM | BLE_SMP_OPTION_SECURE_CONNECTION : MITM protection required, no bonding, prefer LE Secure Connections if supported, otherwise use LE legacy pairing.- BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_MITM | BLE_SMP_OPTION_SECURE_CONNECTION : Bonding requested, MITM protection required, prefer LE Secure Connections if supported, otherwise use LE legacy pairing.- BLE_SMP_OPTION_SECURE_CONNECTION | BLE_SMP_OPTION_KEYPRESS : No bonding, prefer LE Secure Connections if supported, otherwise use LE legacy pairing, enable keypress notifications.- BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_SECURE_CONNECTION | BLE_SMP_OPTION_KEYPRESS : Bonding requested, prefer LE Secure Connections if supported, otherwise use LE legacy pairing, enable keypress notifications.- BLE_SMP_OPTION_MITM | BLE_SMP_OPTION_SECURE_CONNECTION | BLE_SMP_OPTION_KEYPRESS : MITM protection required, no bonding, prefer LE Secure Connections if supported, otherwise use LE legacy pairing, enable keypress notifications.- BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_MITM | BLE_SMP_OPTION_SECURE_CONNECTION | BLE_SMP_OPTION_KEYPRESS : Bonding requested, MITM protection required, prefer LE Secure Connections if supported, otherwise use LE legacy pairing, enable keypress notifications.

Macro Definition

MacroDescription
BLE_SMP_OPTION_NONENo bonding; keys are not stored.
BLE_SMP_OPTION_BONDINGBonding allowed; exchange and store security and identity information.
BLE_SMP_OPTION_MITMMan-In-The-Middle (MITM) protection requested.
BLE_SMP_OPTION_SECURE_CONNECTIONLE Secure Connections pairing requested.
BLE_SMP_OPTION_KEYPRESSKeypress notifications enabled.