trouble-host

Crates

0.2.0

Versions

default

Flavors

Constant BATTERY_INFORMATION

Source
pub const BATTERY_INFORMATION: BluetoothUuid16;
Expand description

Bluetooth characteristic UUID.

0x2bec Battery Information

The Battery Information characteristic is used to represent the physical characteristics of a battery in the context of the battery’s connection in a device.


§Structure

§Data Type

FieldFlags
Typeboolean16
Size2

§Description

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

––///

§Data Type

FieldBattery Features
Typeboolean8
Size1

§Description

The supported features of the battery. See sec:org.bluetooth.characteristic.battery_information/field/battery_features.

––///

§Data Type

FieldBattery Manufacture Date
Typeuint24
Size0 or 3

§Description

Battery date of manufacture specified as days elapsed since the Epoch (Jan 1, 1970) in the Coordinated Universal Time (UTC) time zone. Refer to the Date UTC characteristic in sec:org.bluetooth.characteristic.date_utc. Base unit: org.bluetooth.unit.time.day Present if bit 0 of the Flags field is set to 1

––///

§Data Type

FieldBattery Expiration Date
Typeuint24
Size0 or 3

§Description

Battery expiration date specified as days elapsed since the Epoch (Jan 1, 1970) in the Coordinated Universal Time (UTC) time zone. Refer to the Date UTC characteristic in sec:org.bluetooth.characteristic.date_utc. Base unit: org.bluetooth.unit.time.day Present if bit 1 of the Flags field is set to 1

––///

§Data Type

FieldBattery Designed Capacity
Typemedfloat16
Size0 or 2

§Description

The capacity of the battery in kilowatt-hours at full charge in original (new) condition. Base unit: org.bluetooth.unit.energy.kilowatt_hour Allowed values are all positive real numbers. Present if bit 2 of the Flags field is set to 1

––///

§Data Type

FieldBattery Low Energy
Typemedfloat16
Size0 or 2

§Description

The battery energy value in kilowatt-hours when the battery is low. Base unit: org.bluetooth.unit.energy.kilowatt_hour Allowed values are all positive real numbers. Present if bit 3 of the Flags field is set to 1

––///

§Data Type

FieldBattery Critical Energy
Typemedfloat16
Size0 or 2

§Description

The battery energy value in kilowatt-hours when the battery is critical. Base unit: org.bluetooth.unit.energy.kilowatt_hour Allowed values are all positive real numbers. Present if bit 4 of the Flags field is set to 1

––///

§Data Type

FieldBattery Chemistry
Typeuint8
Size0 or 1

§Description

See sec:org.bluetooth.characteristic.battery_information/field/battery_chemistry. Present if bit 5 of the Flags field is set to 1

––///

§Data Type

FieldNominal Voltage
Typemedfloat16
Size0 or 2

§Description

Nominal voltage of the battery in units of volts. Base unit: org.bluetooth.unit.electric_potential_difference.volt Allowed values are all real numbers. Present if bit 6 of the Flags field is set to 1

––///

§Data Type

FieldBattery Aggregation Group
Typeuint8
Size0 or 1

§Description

Indicates the Battery Aggregation Group to which this instance of the battery service is associated. 0: Not in an aggregation group 1–254: Battery Aggregation Group Number 255: RFU Present if bit 7 of the Flags field is set to 1


more information