The Internet of Things (IoT) [1] represents a vision of future technological ubiquity, where the ability of devices to connect to a global infrastructure enables to bridge the gap between the phys- ical and digital realms. The diffusion of the IoT paradigm would allow the implementation and the diffusion of innovative and cus- tomized services in several applications fields. From a technologi- cal point of view, the term ‘things’ is used to denote various phys- ical everyday objects that embed electronics (e.g., wireless sensor nodes, actuators, RFIDs, and so on) to make them smart and suit- able to be part of a global networked infrastructure. From a logical point of view, an IoT system can be characterised as a collection of smart devices which interact on a collaborative basis to fulfill a common goal, acquiring data from and acting upon the environ- ment they are in.