battery#
capacity()#
The capacity()
method reads the remaining capacity of the battery.
Returns: The remaining capacity as percentage.
temperature()#
The temperature(units)
method reads the temperature of the battery.
Parameters |
Description |
---|---|
units |
Optional. A valid TemperatureUnits type or |
Returns: The temperature in supplied units.
voltage()#
The voltage(units)
method reads the voltage of the battery.
Parameters |
Description |
---|---|
units |
Optional. A valid VoltageUnits type or |
Returns: The voltage in supplied units.
current()#
The current(units)
method reads the current of the battery.
Parameters |
Description |
---|---|
units |
Optional. |
Returns: The current in supplied units.