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
| Field | Flags |
| Type | boolean16 |
| Size | 2 |
§Description
See sec:org.bluetooth.characteristic.battery_information/field/flags.
––///
§Data Type
| Field | Battery Features |
| Type | boolean8 |
| Size | 1 |
§Description
The supported features of the battery. See sec:org.bluetooth.characteristic.battery_information/field/battery_features.
––///
§Data Type
| Field | Battery Manufacture Date |
| Type | uint24 |
| Size | 0 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
| Field | Battery Expiration Date |
| Type | uint24 |
| Size | 0 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
| Field | Battery Designed Capacity |
| Type | medfloat16 |
| Size | 0 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
| Field | Battery Low Energy |
| Type | medfloat16 |
| Size | 0 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
| Field | Battery Critical Energy |
| Type | medfloat16 |
| Size | 0 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
| Field | Battery Chemistry |
| Type | uint8 |
| Size | 0 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
| Field | Nominal Voltage |
| Type | medfloat16 |
| Size | 0 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
| Field | Battery Aggregation Group |
| Type | uint8 |
| Size | 0 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