trouble-host

Crates

0.2.0

Versions

default

Flavors

Constant BATTERY_ENERGY_STATUS

Source
pub const BATTERY_ENERGY_STATUS: BluetoothUuid16;
Expand description

Bluetooth characteristic UUID.

0x2bf0 Battery Energy Status

The Battery Energy Status characteristic is used to represent details about the energy status of the battery.


§Structure

§Data Type

FieldFlags
Typeboolean8
Size1

§Description

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

––///

§Data Type

FieldExternal Source Power
Typemedfloat16
Size0 or 2

§Description

The total power being consumed from an external power source in watts for its Battery Aggregation Group. Base unit: org.bluetooth.unit.power.watt Allowed values are 0 and all positive real numbers. Present if bit 0 of the Flags field is set to 1

––///

§Data Type

FieldPresent Voltage
Typemedfloat16
Size0 or 2

§Description

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

––///

§Data Type

FieldAvailable Energy
Typemedfloat16
Size0 or 2

§Description

The available energy of the battery in kilowatt-hours in its current charge state. Base unit: org.bluetooth.unit.energy.kilowatt_hour Allowed values are 0 and all positive real numbers. Present if bit 2 of the Flags field is set to 1

––///

§Data Type

FieldAvailable Battery Capacity
Typemedfloat16
Size0 or 2

§Description

The capacity of the battery in kilowatt-hours at full charge in its current condition. Base unit: org.bluetooth.unit.energy.kilowatt_hour Allowed values are 0 and all positive real numbers. Present if bit 3 of the Flags field is set to 1

––///

§Data Type

FieldCharge Rate
Typemedfloat16
Size0 or 2

§Description

The energy flowing into the battery in watts. Positive values indicate charging, and negative values indicate discharging. Base unit: org.bluetooth.unit.power.watt Allowed values are all real numbers. Present if bit 4 of the Flags field is set to 1

––///

§Data Type

FieldAvailable Energy at Last Charge
Typemedfloat16
Size0 or 2

§Description

The available energy of the battery in kilowatt-hours in its last charge state. Base unit: org.bluetooth.unit.energy.kilowatt_hour Allowed values are 0 and all positive real numbers. Present if bit 5 of the Flags field is set to 1


more information