Macros

#define BLE_GATTS_NOAUTH   (0x00)
 
#define BLE_GATTS_UNAUTH   (0x01)
 
#define BLE_GATTS_AUTH   (0x02)
 
#define BLE_GATTS_SEC_CON   (0x03)
 

Detailed Description

Macro Definition Documentation

◆ BLE_GATTS_AUTH

#define BLE_GATTS_AUTH   (0x02)

LE security mode 1, level 3. Link needs to be encrypted and authenticated (MITM). Parameter of Service Permission, BLE_GATTS_READ_PERM, BLE_GATTS_WRITE_REQ_PERM, BLE_GATTS_WRITE_CMD_PERM, BLE_GATTS_WRITE_SIGNED_PERM, BLE_GATTS_INDICATE_PERM, BLE_GATTS_NOTIFY_PERM.

Definition at line 101 of file ble_gatts.h.

◆ BLE_GATTS_NOAUTH

#define BLE_GATTS_NOAUTH   (0x00)

LE security mode 1, level 1. Link does not need to be encrypted or authenticated. Parameter of Service Permission, BLE_GATTS_READ_PERM, BLE_GATTS_WRITE_REQ_PERM, BLE_GATTS_WRITE_CMD_PERM, BLE_GATTS_WRITE_SIGNED_PERM, BLE_GATTS_INDICATE_PERM, BLE_GATTS_NOTIFY_PERM.

Definition at line 97 of file ble_gatts.h.

◆ BLE_GATTS_SEC_CON

#define BLE_GATTS_SEC_CON   (0x03)

LE security mode 1, level 4. Link needs to be encrypted and authenticateBLE_GATTS_d (secure connections). Parameter of Service Permission, BLE_GATTS_READ_PERM, BLE_GATTS_WRITE_REQ_PERM, BLE_GATTS_WRITE_CMD_PERM, BLE_GATTS_WRITE_SIGNED_PERM, BLE_GATTS_INDICATE_PERM, BLE_GATTS_NOTIFY_PERM.

Definition at line 103 of file ble_gatts.h.

◆ BLE_GATTS_UNAUTH

#define BLE_GATTS_UNAUTH   (0x01)

LE security mode 1, level 2. Link needs to be encrypted, but not to be authenticated. Parameter of Service Permission, BLE_GATTS_READ_PERM, BLE_GATTS_WRITE_REQ_PERM, BLE_GATTS_WRITE_CMD_PERM, BLE_GATTS_WRITE_SIGNED_PERM, BLE_GATTS_INDICATE_PERM, BLE_GATTS_NOTIFY_PERM.

Definition at line 99 of file ble_gatts.h.