Electron battery status and GPS

The code in the PowerCheck class in this post is a better way to tell if the battery is charging. It has several useful methods including getIsCharging(), getIsPowered(), and getHasBattery().

1 Like