src.bluetooth_sig.gatt.characteristics.new_alert

New Alert characteristic (0x2A46) implementation.

Represents a new alert with category, count, and optional text information. Used by Alert Notification Service (0x1811).

Based on Bluetooth SIG GATT Specification: - New Alert: Variable length (Category ID + Number of New Alert + Text String)

Classes

Name

Description

NewAlertCharacteristic

New Alert characteristic (0x2A46).

NewAlertData

New Alert characteristic data structure.

Module Contents

class src.bluetooth_sig.gatt.characteristics.new_alert.NewAlertCharacteristic

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

New Alert characteristic (0x2A46).

Represents the category, count, and brief text for a new alert.

Structure (variable length): - Category ID: uint8 (0=Simple Alert, 1=Email, etc.) - Number of New Alert: uint8 (0-255, count of new alerts) - Text String Information: utf8s (0-18 characters, optional brief text)

Used by Alert Notification Service (0x1811).

allow_variable_length: bool = True
min_length: int = 2
class src.bluetooth_sig.gatt.characteristics.new_alert.NewAlertData

Bases: msgspec.Struct

New Alert characteristic data structure.

category_id: src.bluetooth_sig.types.AlertCategoryID
number_of_new_alert: int
text_string_information: str