A Reference Architecture for the IoT Services’ Adaptability - Using Agents to Make IoT Services Dynamically Reconfigurable Topics: Software Architecture and Middleware In Proceedings of the 3rd International Conference on Internet of Things, Big Data and Security IoTBDS - Volume 1, 187-194, 2018 , Funchal, Madeira, Portugal