src.bluetooth_sig.gatt.descriptors.characteristic_aggregate_format

Characteristic Aggregate Format Descriptor implementation.

Classes

Name

Description

CharacteristicAggregateFormatData

Characteristic Aggregate Format descriptor data.

CharacteristicAggregateFormatDescriptor

Characteristic Aggregate Format Descriptor (0x2905).

Module Contents

class src.bluetooth_sig.gatt.descriptors.characteristic_aggregate_format.CharacteristicAggregateFormatData

Bases: msgspec.Struct

Characteristic Aggregate Format descriptor data.

attribute_handles: list[int]
class src.bluetooth_sig.gatt.descriptors.characteristic_aggregate_format.CharacteristicAggregateFormatDescriptor

Bases: src.bluetooth_sig.gatt.descriptors.base.BaseDescriptor

Characteristic Aggregate Format Descriptor (0x2905).

Contains a list of attribute handles that collectively form an aggregate value. Used to group multiple characteristics into a single logical value.

get_attribute_handles(data: bytes) list[int]

Get the list of attribute handles.

get_handle_count(data: bytes) int

Get the number of attribute handles.