Azure IoT Hub currently supports three different protocols. All of them work differently and are implemented in IoT solutions depending on the needs of the communication from the device to IoT Hub.
How to choose between protocols
Getting ready
First, let's recap the three protocols, HTTP, MQTT, AMQP. MQTT protocol works on a publish and subscribe architecture. A MQTT client subscribes to a channel on a server, and when a server receives new information for that channel, it pushes it out to that device.
MQTT provides the QoS feature, which defines the priority for the communication between the device and server. These are:
- 0: deliver the message once
- 1: deliver the message at least once
- 2: deliver the message exactly...