电池#

容量()#

The capacity() method reads the remaining capacity of the battery.

**返回:**剩余容量百分比。

温度()#

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

参数

描述

单位

Optional. A valid TemperatureUnits type or PERCENT. The default is CELSIUS.

**返回:**以提供的单位表示的温度。

电压()#

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

参数

描述

单位

Optional. A valid VoltageUnits type or PERCENT. The default is MV.

**返回:**以提供的单位表示的电压。

当前的()#

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

参数

描述

单位

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

返回: 以提供的单位表示的电流。