src.bluetooth_sig.gatt.characteristics.weight_scale_feature¶
Weight Scale Feature characteristic implementation.
Classes¶
Name | Description |
|---|---|
Height measurement resolution enumeration. |
|
Weight measurement resolution enumeration. |
|
Weight scale bit field constants. |
|
Weight Scale Feature characteristic (0x2A9E). |
|
Parsed data from Weight Scale Feature characteristic. |
|
Weight Scale Feature flags as per Bluetooth SIG specification. |
Module Contents¶
- class src.bluetooth_sig.gatt.characteristics.weight_scale_feature.HeightMeasurementResolution¶
Bases:
enum.IntEnumHeight measurement resolution enumeration.
- NOT_SPECIFIED = 0¶
- POINT_001_M_OR_POINT_1_INCH = 3¶
- POINT_005_M_OR_HALF_INCH = 2¶
- POINT_01_M_OR_1_INCH = 1¶
- class src.bluetooth_sig.gatt.characteristics.weight_scale_feature.WeightMeasurementResolution¶
Bases:
enum.IntEnumWeight measurement resolution enumeration.
- HALF_KG_OR_1_LB = 1¶
- NOT_SPECIFIED = 0¶
- POINT_005_KG_OR_POINT_01_LB = 7¶
- POINT_01_KG_OR_POINT_02_LB = 6¶
- POINT_02_KG_OR_POINT_05_LB = 5¶
- POINT_05_KG_OR_POINT_1_LB = 4¶
- POINT_1_KG_OR_POINT_2_LB = 3¶
- POINT_2_KG_OR_HALF_LB = 2¶
- class src.bluetooth_sig.gatt.characteristics.weight_scale_feature.WeightScaleBits¶
Weight scale bit field constants.
- HEIGHT_RESOLUTION_BIT_WIDTH = 3¶
- HEIGHT_RESOLUTION_START_BIT = 7¶
- WEIGHT_RESOLUTION_BIT_WIDTH = 4¶
- WEIGHT_RESOLUTION_START_BIT = 3¶
- class src.bluetooth_sig.gatt.characteristics.weight_scale_feature.WeightScaleFeatureCharacteristic¶
Bases:
src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[WeightScaleFeatureData]Weight Scale Feature characteristic (0x2A9E).
Used to indicate which optional features are supported by the weight scale. This is a read-only characteristic that describes device capabilities.
- class src.bluetooth_sig.gatt.characteristics.weight_scale_feature.WeightScaleFeatureData¶
Bases:
msgspec.StructParsed data from Weight Scale Feature characteristic.
- height_measurement_resolution: HeightMeasurementResolution¶
- weight_measurement_resolution: WeightMeasurementResolution¶
- class src.bluetooth_sig.gatt.characteristics.weight_scale_feature.WeightScaleFeatures¶
Bases:
enum.IntFlagWeight Scale Feature flags as per Bluetooth SIG specification.
- BMI_SUPPORTED = 4¶
- MULTIPLE_USERS_SUPPORTED = 2¶
- TIMESTAMP_SUPPORTED = 1¶