Const
The current power source. Returns "ac" when plugged in, "battery" when on battery power, "ups" when powered by a UPS, or "unknown" if the source cannot be determined.
"ac"
"battery"
"ups"
"unknown"
The current power source. Returns
"ac"when plugged in,"battery"when on battery power,"ups"when powered by a UPS, or"unknown"if the source cannot be determined.