src.bluetooth_sig.gatt.characteristics.time_with_dst

Time with DST characteristic (0x2A11).

Represents the date and time with DST offset information. Structure: DateTime(7 bytes) + DST Offset(1 byte) = 8 bytes total.

References

Bluetooth SIG Assigned Numbers / GATT Service Specifications

Classes

Name

Description

TimeWithDstCharacteristic

Time with DST characteristic (0x2A11).

TimeWithDstData

Parsed Time with DST data.

Module Contents

class src.bluetooth_sig.gatt.characteristics.time_with_dst.TimeWithDstCharacteristic

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

Time with DST characteristic (0x2A11).

Structure (8 bytes): - DateTime: Year(uint16) + Month(uint8) + Day(uint8) + Hours(uint8) + Minutes(uint8) + Seconds(uint8) = 7 bytes - DST Offset: uint8 = 1 byte

max_length: int | None = 8
min_length: int | None = 8
class src.bluetooth_sig.gatt.characteristics.time_with_dst.TimeWithDstData

Bases: msgspec.Struct

Parsed Time with DST data.

dst_offset: src.bluetooth_sig.gatt.characteristics.dst_offset.DSTOffset
dt: datetime.datetime