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
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
Macro | Description |
---|---|
BLE_SMP_OPTION_NONE | No bonding; keys are not stored. |
BLE_SMP_OPTION_BONDING | Bonding allowed; exchange and store security and identity information. |
BLE_SMP_OPTION_MITM | Man-In-The-Middle (MITM) protection requested. |
BLE_SMP_OPTION_SECURE_CONNECTION | LE Secure Connections pairing requested. |
BLE_SMP_OPTION_KEYPRESS | Keypress notifications enabled. |