src.bluetooth_sig.gatt.characteristics.time_exponential_8

Time Exponential 8 characteristic (0x2B13).

Classes

Name

Description

TimeExponential8Characteristic

Time Exponential 8 characteristic (0x2B13).

Module Contents

class src.bluetooth_sig.gatt.characteristics.time_exponential_8.TimeExponential8Characteristic(info: src.bluetooth_sig.types.CharacteristicInfo | None = None, validation: src.bluetooth_sig.gatt.characteristics.characteristic_meta.ValidationConfig | None = None)

Bases: src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[datetime.timedelta]

Time Exponential 8 characteristic (0x2B13).

org.bluetooth.characteristic.time_exponential_8

Time duration using exponential encoding: value = 1.1^(N - 64) seconds. - Raw 0x00 represents 0 seconds. - Raw 0xFE represents total life of the device. - Raw 0xFF represents ‘value is not known’.

Raises:

SpecialValueDetectedError – If raw value is a sentinel (e.g. 0xFE, 0xFF).