batería#

capacidad()#

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

Devuelve: La capacidad restante como porcentaje.

temperatura()#

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

Parámetros

Descripción

unidades

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

Devoluciones: La temperatura en unidades suministradas.

Voltaje()#

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

Parámetros

Descripción

unidades

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

Devuelve: El voltaje en unidades suministradas.

actual()#

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

Parámetros

Descripción

unidades

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

Devuelve: La corriente en unidades suministradas.