src.bluetooth_sig.gatt.characteristics.weight_scale_feature

Weight Scale Feature characteristic implementation.

Classes

Name

Description

HeightMeasurementResolution

Height measurement resolution enumeration.

WeightMeasurementResolution

Weight measurement resolution enumeration.

WeightScaleBits

Weight scale bit field constants.

WeightScaleFeatureCharacteristic

Weight Scale Feature characteristic (0x2A9E).

WeightScaleFeatureData

Parsed data from Weight Scale Feature characteristic.

WeightScaleFeatures

Weight Scale Feature flags as per Bluetooth SIG specification.

Module Contents

class src.bluetooth_sig.gatt.characteristics.weight_scale_feature.HeightMeasurementResolution

Bases: enum.IntEnum

Height 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.IntEnum

Weight 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.

allow_variable_length: bool = False
expected_length: int = 4
max_length: int = 4
min_length: int = 4
class src.bluetooth_sig.gatt.characteristics.weight_scale_feature.WeightScaleFeatureData

Bases: msgspec.Struct

Parsed data from Weight Scale Feature characteristic.

bmi_supported: bool
height_measurement_resolution: HeightMeasurementResolution
multiple_users_supported: bool
raw_value: int
timestamp_supported: bool
weight_measurement_resolution: WeightMeasurementResolution
class src.bluetooth_sig.gatt.characteristics.weight_scale_feature.WeightScaleFeatures

Bases: enum.IntFlag

Weight Scale Feature flags as per Bluetooth SIG specification.

BMI_SUPPORTED = 4
MULTIPLE_USERS_SUPPORTED = 2
TIMESTAMP_SUPPORTED = 1