Internet of Things refers to interconnection of billions of things which include objects, services and living beings. The realization of IoT systems will fundamentally change how we interact with the world and a key technology in that direction is Middleware. Middleware is an intermediary software system between IoT devices and applications. This thesis proposes a lightweight Middleware solution which can be deployed both on the Cloud for intense analytics and on the Edge Network for local analytics to support near real time applications and support interoperability between heterogenous devices and applications by providing multiple protocol binding. The experiments are conducted on SDN managed IoT network testbed and the results show that the proposed Middleware is a lightweight solution, which is suitable for both Cloud which is resourceful and Edge devices like resource constrained IoT Gateway and provides interoperability between IoT devices and applications.