A Software Defined Networking Architecture for the Internet-of-Things