QSL4A Documentation of batteryGetPlugType  <QSL4A API Menu>
batteryGetPlugType()
Returns the most recently received plug type data:
-1 - unknown;
0 - unplugged;
1 - power source is an AC charger;
2 - power source is a USB port