attributes

attributes

This module provides definitions common to all kinds of BLE attributes, specifically characteristics and descriptors.

class Attribute

Constants describing security levels.

NO_ACCESS

security mode: access not allowed

OPEN

security_mode: no security (link is not encrypted)

ENCRYPT_NO_MITM

security_mode: unauthenticated encryption, without man-in-the-middle protection

ENCRYPT_WITH_MITM

security_mode: authenticated encryption, with man-in-the-middle protection

LESC_ENCRYPT_WITH_MITM

security_mode: LESC encryption, with man-in-the-middle protection

SIGNED_NO_MITM

security_mode: unauthenticated data signing, without man-in-the-middle protection

SIGNED_WITH_MITM

security_mode: authenticated data signing, without man-in-the-middle protection