@yoda/battery. BatteryState

new BatteryState(fieldsopt)

Parameters:
Name Type Attributes Description
fields object <optional>

initialized with given fields, leaves unspecified fields uninitialized

Name Type Attributes Description
status number <optional>
online number <optional>
vbus_type number <optional>
charge_current number <optional>
temp number <optional>
capacity number <optional>
health number <optional>
battery_present number <optional>
voltagenow number <optional>
voltagemax number <optional>
voltagemin number <optional>
currentnow number <optional>
time_to_empty_now number <optional>
time_to_empty_avg number <optional>
time_to_full number <optional>
charge_full number <optional>
energy_avg number <optional>