src.bluetooth_sig.gatt.characteristics.unread_alert_status

Unread Alert Status characteristic (0x2A45) implementation.

Represents the number of unread alerts in a specific category. Used by Alert Notification Service (0x1811).

Based on Bluetooth SIG GATT Specification: - Unread Alert Status: 2 bytes (Category ID + Unread Count)

Classes

Name

Description

UnreadAlertStatusCharacteristic

Unread Alert Status characteristic (0x2A45).

UnreadAlertStatusData

Unread Alert Status characteristic data structure.

Module Contents

class src.bluetooth_sig.gatt.characteristics.unread_alert_status.UnreadAlertStatusCharacteristic

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

Unread Alert Status characteristic (0x2A45).

Represents the number of unread alerts in a specific category.

Structure (2 bytes): - Category ID: uint8 (0=Simple Alert, 1=Email, etc.) - Unread Count: uint8 (0-254, 255 means more than 254 unread alerts)

Used by Alert Notification Service (0x1811).

expected_length: int | None = 2
class src.bluetooth_sig.gatt.characteristics.unread_alert_status.UnreadAlertStatusData

Bases: msgspec.Struct

Unread Alert Status characteristic data structure.

category_id: src.bluetooth_sig.types.AlertCategoryID
unread_count: int