trouble-host

Crates

0.2.0

Versions

default

Flavors

Constant BATTERY_LEVEL_STATUS

Source
pub const BATTERY_LEVEL_STATUS: BluetoothUuid16;
Expand description

Bluetooth characteristic UUID.

0x2bed Battery Level Status

The Battery Level Status characteristic is used to represent the power state of a battery, an identifier used to identify the specific battery associated with the data, and the battery level.


§Structure

§Data Type

FieldFlags
Typeboolean8
Size1

§Description

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

––///

§Data Type

FieldPower State
Typeboolean16
Size2

§Description

See sec:org.bluetooth.characteristic.battery_level_status/field/power_state.

––///

§Data Type

FieldIdentifier
Typeuint16
Size0 or 2

§Description

Used as an identifier for a service instance. Populated with a valid value from the GATT Bluetooth Namespace Descriptions \RefRef{assigned_numbers`. Present if bit 0 of the Flags field is set to 1

––///

§Data Type

FieldBattery Level
Typeuint8
Size0 or 1

§Description

Refer to the Battery Level characteristic in sec:org.bluetooth.characteristic.battery_level. Present if bit 1 of the Flags field is set to 1

––///

§Data Type

FieldAdditional Status
Typeboolean8
Size0 or 1

§Description

Contains additional status information such as whether or not service is required. See sec:org.bluetooth.characteristic.battery_level_status/field/additional_status. Present if bit 2 of the Flags field is set to 1


more information