Real-time, bi-directional control system for IBM IoT Platform