You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-hub/iot-hub-devguide-protocols.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: SoniaLopezBravo
6
6
ms.author: sonialopez
7
7
ms.service: azure-iot-hub
8
8
ms.topic: concept-article
9
-
ms.date: 11/21/2022
9
+
ms.date: 03/20/2025
10
10
ms.custom:
11
11
- amqp
12
12
- mqtt
@@ -26,7 +26,7 @@ IoT Hub allows devices to use the following protocols for device-side communicat
26
26
* HTTPS
27
27
28
28
> [!NOTE]
29
-
> IoT Hub has limited feature support for MQTT. If your solution needs MQTT v3.1.1 or v5 support, we recommend [MQTT support in Azure Event Grid](../event-grid/mqtt-overview.md). For more information, see [Compare MQTT support in IoT Hub and Event Grid](../iot/iot-mqtt-connect-to-iot-hub.md#compare-mqtt-support-in-iot-hub-and-event-grid).
29
+
> IoT Hub provides limited feature support for MQTT. If your solution needs MQTT v3.1.1 or v5 support, we recommend [Overview of the MQTT broker feature in Azure Event Grid](../event-grid/mqtt-overview.md). For more information, see the [Compare MQTT support in IoT Hub and Event Grid](../iot/iot-mqtt-connect-to-iot-hub.md#compare-mqtt-support-in-iot-hub-and-event-grid) section of [Communicate with an IoT hub using the MQTT protocol](../iot/iot-mqtt-connect-to-iot-hub.md).
30
30
31
31
For information about how these protocols support specific IoT Hub features, see [Device-to-cloud communications guidance](iot-hub-devguide-d2c-guidance.md) and [Cloud-to-device communications guidance](iot-hub-devguide-c2d-guidance.md).
32
32
@@ -44,20 +44,20 @@ Consider the following points when you choose your protocol for device-side comm
44
44
45
45
***Field gateways**. MQTT and HTTPS support only a single device identity (device ID plus credentials) per TLS connection. For this reason, these protocols aren't supported for field gateway scenarios that require multiplexing messages, using multiple device identities, across either a single connection or a pool of upstream connections to IoT Hub. Such gateways can use a protocol that supports multiple device identities per connection, like AMQP, for their upstream traffic.
46
46
47
-
***Low resource devices**. The MQTT and HTTPS libraries have a smaller footprint than the AMQP libraries. As such, if the device has limited resources (for example, less than 1 MB of RAM), these protocols might be the only protocol implementation available.
47
+
***Low resource devices**. The MQTT and HTTPS libraries have a smaller footprint than the AMQP libraries. As such, if the device provides limited resources (for example, less than 1 MB of RAM), these protocols might be the only protocol implementation available.
48
48
49
49
***Network traversal**. The standard AMQP protocol uses port 5671, and MQTT listens on port 8883. Use of these ports could cause problems in networks that are closed to non-HTTPS protocols. Use MQTT over WebSockets, AMQP over WebSockets, or HTTPS in this scenario.
50
50
51
51
***Payload size**. MQTT and AMQP are binary protocols, which result in more compact payloads than HTTPS.
52
52
53
53
> [!WARNING]
54
-
> When using HTTPS, each device should poll for cloud-to-device messages no more than once every 25 minutes. In development, each device can poll more frequently, if desired.
54
+
> When devices use the HTTPS protocol, each device should poll for cloud-to-device messages no more than once every 25 minutes. In development, each device can poll more frequently, if desired.
Devices can communicate with IoT Hub in Azure using various protocols. Typically, the choice of protocol is driven by the specific requirements of the solution. The following table lists the outbound ports that must be open for a device to be able to use a specific protocol:
60
+
Devices can communicate with IoT Hub in Azure using various protocols. Typically, the specific requirements of the solution determine the choice of protocol. The following table lists the outbound ports that must be open for a device to be able to use a specific protocol:
61
61
62
62
| Protocol | Port |
63
63
| --- | --- |
@@ -71,4 +71,4 @@ The IP address of an IoT hub is subject to change without notice. To learn how t
71
71
72
72
## Next steps
73
73
74
-
For more information about how IoT Hub implements the MQTT protocol, see [Communicate with your IoT hub using the MQTT protocol](../iot/iot-mqtt-connect-to-iot-hub.md).
74
+
For more information about how IoT Hub implements the MQTT protocol, see [Communicate with an IoT hub using the MQTT protocol](../iot/iot-mqtt-connect-to-iot-hub.md).
0 commit comments