src.bluetooth_sig.gatt.characteristics.power¶
Power characteristic (0x2B05).
Classes¶
Name | Description |
|---|---|
Power characteristic (0x2B05). |
Module Contents¶
- class src.bluetooth_sig.gatt.characteristics.power.PowerCharacteristic(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[float]Power characteristic (0x2B05).
org.bluetooth.characteristic.power
Power in watts with a resolution of 0.1. M=1, d=-1, b=0 → scale factor 0.1. Range: 0-1677721.3 W. A value of 0xFFFFFE represents ‘value is not valid’.
- Raises:
SpecialValueDetectedError – If raw value is a sentinel (e.g. 0xFFFFFE).