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 |
|---|---|
|
Optional. A valid |
Returns: The temperature in supplied units.
voltage()#
The voltage(units) method reads the voltage of the battery.
Parameters |
Description |
|---|---|
|
Optional. A valid |
Returns: The voltage in supplied units.
current()#
The current(units) method reads the current of the battery.
Parameters |
Description |
|---|---|
|
Optional. |
Returns: The current in supplied units.