src.bluetooth_sig.gatt.characteristics.alert_level

Alert Level characteristic implementation.

Classes

Name

Description

AlertLevel

Alert level values as defined by Bluetooth SIG.

AlertLevelCharacteristic

Alert Level characteristic (0x2A06).

Module Contents

class src.bluetooth_sig.gatt.characteristics.alert_level.AlertLevel

Bases: enum.IntEnum

Alert level values as defined by Bluetooth SIG.

Values:

NO_ALERT: No alert (0x00) MILD_ALERT: Mild alert (0x01) HIGH_ALERT: High alert (0x02)

HIGH_ALERT = 2
MILD_ALERT = 1
NO_ALERT = 0
class src.bluetooth_sig.gatt.characteristics.alert_level.AlertLevelCharacteristic

Bases: src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[int]

Alert Level characteristic (0x2A06).

org.bluetooth.characteristic.alert_level

The Alert Level characteristic defines the level of alert and is used by services such as Immediate Alert (0x1802), Link Loss (0x1803), and Phone Alert Status (0x180E).

Valid values:
  • 0x00: No Alert

  • 0x01: Mild Alert

  • 0x02: High Alert

  • 0x03-0xFF: Reserved for Future Use

Spec: Bluetooth SIG GATT Specification Supplement, Alert Level

max_value: int
min_value: int