Pairing options

C

#define BLE_SMP_OPTION_NONE                                 0x00
#define BLE_SMP_OPTION_BONDING                              0x01
#define BLE_SMP_OPTION_MITM                                 0x04
#define BLE_SMP_OPTION_SECURE_CONNECTION                    0x08
#define BLE_SMP_OPTION_KEYPRESS                             0x10

Description

The definition of pairing options.

Note

Possible combinations are :

  • BLE_SMP_OPTION_NONE : No bonding, LE legacy pairing is used.

  • BLE_SMP_OPTION_BONDING : Bonding requested, LE legacy pairing is used.

  • BLE_SMP_OPTION_SECURE_CONNECTION : No Bonding. If both devices support LE Secure Connections, use LE Secure Connections; otherwise use LE legacy pairing.

  • BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_SECURE_CONNECTION : Bonding Requested. If both devices support LE Secure Connections, use LE Secure Connections; otherwise use LE legacy pairing.

  • BLE_SMP_OPTION_MITM : No bonding, LE legacy pairing is used. MITM protection is required.

  • BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_MITM : Bonding requested, LE legacy pairing is used. MITM protection is required.

  • BLE_SMP_OPTION_MITM | BLE_SMP_OPTION_SECURE_CONNECTION : No Bonding. MITM protection is required. If both devices support LE Secure Connections, use LE Secure Connections; otherwise use LE legacy pairing.

  • BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_MITM | BLE_SMP_OPTION_SECURE_CONNECTION : Bonding Requested. MITM protection is required. If both devices support LE Secure Connections, use LE Secure Connections; otherwise use LE legacy pairing.

  • BLE_SMP_OPTION_SECURE_CONNECTION | BLE_SMP_OPTION_KEYPRESS : No Bonding. If both devices support LE Secure Connections, use LE Secure Connections; otherwise use LE legacy pairing. Enable keypress notifications.

  • BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_SECURE_CONNECTION | BLE_SMP_OPTION_KEYPRESS : Bonding Requested. If both devices support LE Secure Connections, use LE Secure Connections; otherwise use LE legacy pairing. Enable keypress notifications.

  • BLE_SMP_OPTION_MITM | BLE_SMP_OPTION_SECURE_CONNECTION | BLE_SMP_OPTION_KEYPRESS : No Bonding. MITM protection is required. If both devices support LE Secure Connections, use LE Secure Connections; 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 is required. If both devices support LE Secure Connections, use LE Secure Connections; otherwise use LE legacy pairing. Enable keypress notifications.

Macro Definition

MacroDescription
BLE_SMP_OPTION_NONEDo not allow a bond to be created with a peer device. The keys are not stored.
BLE_SMP_OPTION_BONDINGAllows two connected devices to exchange and store security and identity information to create a trusted relationship .
BLE_SMP_OPTION_MITMRequest MITM protection.
BLE_SMP_OPTION_SECURE_CONNECTIONRequest LE Secure Connections pairing.
BLE_SMP_OPTION_KEYPRESSEnable keypress notifications.