src.bluetooth_sig.gatt.characteristics.object_size

Object Size characteristic implementation.

Classes

Name

Description

ObjectSizeCharacteristic

Object Size characteristic (0x2AC0).

ObjectSizeData

Parsed data from Object Size characteristic.

Module Contents

class src.bluetooth_sig.gatt.characteristics.object_size.ObjectSizeCharacteristic

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

Object Size characteristic (0x2AC0).

org.bluetooth.characteristic.object_size

Two uint32 fields representing the current size and allocated size of an object in the Object Transfer Service (OTS).

expected_length: int = 8
min_length: int = 8
class src.bluetooth_sig.gatt.characteristics.object_size.ObjectSizeData

Bases: msgspec.Struct

Parsed data from Object Size characteristic.

current_size

Current size of the object in bytes.

allocated_size

Allocated size for the object in bytes.

allocated_size: int
current_size: int