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 PERCENT. The default is CELSIUS.

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 PERCENT. The default is MV.

Returns: The voltage in supplied units.

current()#

The current(units) method reads the current of the battery.

Parameters

Description

units

Optional. AMP is the only current unit type available. The default is mA or milliamp, but it is not available as an enum.

Returns: The current in supplied units.