This paper describes our middleware that enables devices to join on demand a common network environment to realize a smart space application scenario. We describe the architecture overview and a practical implementation scenario in which three devices are involved in a multi-device smart space application. The solution simplifies the smart space infrastructure discovery phase when the the user enters into the physical smart environment.