Agents Meet the IoT: Toward Ecosystems of Networked Smart Objects