src.bluetooth_sig.gatt.characteristics.local_time_information¶
Local Time Information characteristic implementation.
Classes¶
Name | Description |
|---|---|
DST offset values as an IntEnum to avoid magic numbers. |
|
DST offset information part of local time data. |
|
Local Time Information characteristic (0x2A0F). |
|
Parsed data from Local Time Information characteristic. |
|
Timezone information part of local time data. |
Module Contents¶
- class src.bluetooth_sig.gatt.characteristics.local_time_information.DSTOffset¶
Bases:
enum.IntEnumDST offset values as an IntEnum to avoid magic numbers.
Values correspond to the Bluetooth SIG encoded DST offset values.
- DAYLIGHT = 4¶
- DOUBLE_DAYLIGHT = 8¶
- HALF_HOUR = 2¶
- STANDARD = 0¶
- UNKNOWN = 255¶
- class src.bluetooth_sig.gatt.characteristics.local_time_information.DSTOffsetInfo¶
Bases:
msgspec.StructDST offset information part of local time data.
- class src.bluetooth_sig.gatt.characteristics.local_time_information.LocalTimeInformationCharacteristic¶
Bases:
src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[LocalTimeInformationData]Local Time Information characteristic (0x2A0F).
org.bluetooth.characteristic.local_time_information
Local time information characteristic.
Represents the relation (offset) between local time and UTC. Contains time zone and Daylight Savings Time (DST) offset information.
- class src.bluetooth_sig.gatt.characteristics.local_time_information.LocalTimeInformationData¶
Bases:
msgspec.StructParsed data from Local Time Information characteristic.
- dst_offset: DSTOffsetInfo¶
- timezone: TimezoneInfo¶