MQTT is the most preferred protocol for machine-to-machine (M2M) and Internet of Things applications.