An infrastructure for connecting Internet-of-Things