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