Macros
Attribute and Service Access Rights
BLE » Generic Attribute Profile (GATT) » Generic Attribute Profile (GATT) Server » Defines

## Macros
#define | NOAUTH (0x00)
#define | UNAUTH (0x01)
#define | AUTH (0x02)
#define | SEC_CON (0x03)

## Detailed Description

## Macro Definition Documentation

## ◆ AUTH

#define AUTH (0x02)

LE security mode 1, level 3. Link needs to be encrypted and authenticated (MITM). Parameter of SRVC_PERM, READ_PERM, WRITE_REQ_PERM, WRITE_CMD_PERM, WRITE_SIGNED_PERM, INDICATE_PERM, NOTIFY_PERM.

## ◆ NOAUTH

#define NOAUTH (0x00)

LE security mode 1, level 1. Link does not need to be encrypted or authenticated. Parameter of SRVC_PERM, READ_PERM, WRITE_REQ_PERM, WRITE_CMD_PERM, WRITE_SIGNED_PERM, INDICATE_PERM, NOTIFY_PERM.

## ◆ SEC_CON

#define SEC_CON (0x03)

LE security mode 1, level 4. Link needs to be encrypted and authenticated (secure connections). Parameter of SRVC_PERM, READ_PERM, WRITE_REQ_PERM, WRITE_CMD_PERM, WRITE_SIGNED_PERM, INDICATE_PERM, NOTIFY_PERM.

## ◆ UNAUTH

#define UNAUTH (0x01)

LE security mode 1, level 2. Link needs to be encrypted, but not to be authenticated. Parameter of SRVC_PERM, READ_PERM, WRITE_REQ_PERM, WRITE_CMD_PERM, WRITE_SIGNED_PERM, INDICATE_PERM, NOTIFY_PERM.