Software-defined power management solutions for mobile, wall-plugged, IoT devices