@yoda/battery

provide the battery state management.

Classes

BatteryState

Methods

(inner) get(powerState) → {Number}

Parameters:
Name Type Description
powerState BatteryState

a pre-allocated PowerState memory block

Returns:
Type:
number

status code, 0 if success, non-zero code otherwise