trouble-host

Crates

0.2.0

Versions

default

Flavors

Constant WEIGHT_MEASUREMENT

Source
pub const WEIGHT_MEASUREMENT: BluetoothUuid16;
Expand description

Bluetooth characteristic UUID.

0x2a9d Weight Measurement

The Weight Measurement characteristic is used to represent data related to a weight measurement.


§Structure

§Data Type

FieldFlags
Typeboolean8
Size1

§Description

See sec:org.bluetooth.characteristic.weight_measurement/field/flags

––///

§Data Type

FieldWeight
Typeuint16
Size2

§Description

This field is in kilograms with resolution 0.005 if the bit 0 of the Flag field is 0 or in pounds with a resolution of 0.01 if the bit 0 of the Flag field is 1.

––///

§Data Type

FieldTime Stamp
Typestruct
Size0 or 7

§Description

Refer to Date Time characteristic in sec:org.bluetooth.characteristic.date_time Present if bit 1 of Flags field is set to 1

––///

§Data Type

FieldUser ID
Typeuint8
Size0 or 1

§Description

The special value of 0xFF for User ID represents “unknown user”. Present if bit 2 of Flags field is set to 1

––///

§Data Type

FieldBMI
Typeuint16
Size0 or 2

§Description

Unit is 0.1 kg/m2 or org.bluetooth.unit.kilogram_per_square_metre Represented values: M = 1, d = -1, b = 0. Present if bit 3 of Flags field is set to 1

––///

§Data Type

FieldHeight
Typeuint16
Size0 or 2

§Description

This field is in meters with a resolution of 0.001 if the bit 0 of the Flag field is 0 or in inches with a resolution of 0.1 if the bit 0 of the Flag field is 1. Present if bit 3 of Flags field is set to 1


more information