From IoT to cloud: Applications and performance of the MQTT protocol