trouble-host

Crates

0.2.0

Versions

default

Flavors

Constant BATTERY_HEALTH_STATUS

Source
pub const BATTERY_HEALTH_STATUS: BluetoothUuid16;
Expand description

Bluetooth characteristic UUID.

0x2bea Battery Health Status

The Battery Health Status characteristic is used to represent several aspects of battery health.


§Structure

§Data Type

FieldFlags
Typeboolean8
Size1

§Description

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

––///

§Data Type

FieldBattery Health Summary
Typeuint8
Size0 or 1

§Description

Represents aggregation of the overall health of the battery where 100% represents new working condition and 0% represents the end of its expected lifetime when replacement is required. The value within this range is determined by the implementation. Unit is percentage with a resolution of 1. Allowed range is 0 to 100. Base unit: org.bluetooth.unit.percentage Present if bit 0 of the Flags field is set to 1

––///

§Data Type

FieldCycle Count
Typeuint16
Size0 or 2

§Description

Represents the count value of charge cycles where one charge cycle is a discharge equivalent to the capacity of the battery at full charge in its current condition. Unit is unitless with a resolution of 1. Present if bit 1 of the Flags field is set to 1

––///

§Data Type

FieldCurrent Temperature
Typesint8
Size0 or 1

§Description

Represents the current temperature of the battery. Base Unit: org.bluetooth.unit.thermodynamic_temperature.degree_celsius A raw value of 0x7F represents: Greater than 126. A raw value of 0x80 represents: Less than -127. Present if bit 2 of the Flags field is set to 1

––///

§Data Type

FieldDeep Discharge Count
Typeuint16
Size0 or 2

§Description

Represents the number of times the battery was completely discharged. Unit is unitless with a resolution of 1. Present if bit 3 of the Flags field is set to 1


more information