All Bundles

Power

Power management routines

Operations

GetInfo

Get the current power supply details.

function : GetInfo(secs:IntRef, pct:IntRef) ~ Int
Parameters
NameTypeDescription
secsIntRefseconds of battery life left
pctIntRefpercentage of battery life left, between 0 and 100

Return
TypeDescription
Intstate of the battery, if any