Battery#
capacity()#
The capacity(units)
method reports the remaining capacity of the battery.
Parameters |
Description |
---|---|
units |
The only valid unit is |
Returns: The remaining capacity of the battery as percentage.
temperature()#
The temperature(units)
method reports the temperature of the battery.
Parameters |
Description |
---|---|
units |
A valid TemperatureUnit or |
Returns: The temperature in the supplied units.
voltage()#
The voltage(units)
method reports the voltage of the battery.
Parameters |
Description |
---|---|
units |
A valid VoltageUnits type. The default is |
Returns: The voltage in the supplied units.
current()#
The current(units)
method returns the battery current.
Parameters |
Description |
---|---|
units |
The only valid unit is |
Returns: The current in the supplied units.