| Airoha M0 BLE API 1.0.5.4

Data Fields
ble_sm_conn_sec_t Struct Reference
ble_sm.h

Connection security modes. More...

## Data Fields
uint8_t | sm: 4
uint8_t | lv: 4
uint8_t | encr_key_size

## Detailed Description

Connection security modes.

Security Mode 0 Level 0: No access permissions at all (this level is not defined by the Bluetooth Core specification).
Security Mode 1 Level 1: No security is needed (aka open link).
Security Mode 1 Level 2: Encrypted link required, MITM protection not necessary.
Security Mode 1 Level 3: MITM protected encrypted link required.
Security Mode 1 Level 4: LESC MITM protected encrypted link required.
Security Mode 2 Level 1: Signing or encryption required, MITM protection not necessary.
Security Mode 2 Level 2: MITM protected signing required, unless link is MITM protected encrypted.

Connection security status.

## Field Documentation

## ◆ sm

uint8_t ble_sm_conn_sec_t::sm

Security Mode (1 or 2), 0 for no permissions at all.

## ◆ lv

uint8_t ble_sm_conn_sec_t::lv

Level (1, 2 or 3), 0 for no permissions at all.

## ◆ encr_key_size

uint8_t ble_sm_conn_sec_t::encr_key_size

Length of currently active encryption key, 7 to 16 octets (only applicable for bonding procedures).