src.bluetooth_sig.gatt.characteristics.uncertainty

Uncertainty characteristic implementation.

IPS v1.0 §3.8: uint8 bitfield encoding stationary indicator, update time, and position precision.

Classes

Name

Description

UncertaintyCharacteristic

Uncertainty characteristic (0x2AB4).

UncertaintyData

Parsed Uncertainty bitfield per IPS v1.0 §3.8.

Module Contents

class src.bluetooth_sig.gatt.characteristics.uncertainty.UncertaintyCharacteristic(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[UncertaintyData]

Uncertainty characteristic (0x2AB4).

org.bluetooth.characteristic.uncertainty

IPS v1.0 §3.8: uint8 bitfield.

Bit 0: Stationary (0 = stationary, 1 = mobile) Bits 1-3: Update Time - encoded as round(e^(1.35 * value)) seconds Bits 4-6: Precision - encoded as round(e^(1.35 * value)) decimetres Bit 7: RFU

expected_length = 1
max_length = 1
min_length = 1
class src.bluetooth_sig.gatt.characteristics.uncertainty.UncertaintyData

Bases: msgspec.Struct

Parsed Uncertainty bitfield per IPS v1.0 §3.8.

stationary

False if the transmitter is stationary, True if mobile.

update_time

Estimated time between position updates (seconds).

precision

Estimated position precision (decimetres).

precision: int
stationary: bool
update_time: int