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-mqtt-support.md
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,28 +155,27 @@ This repository contains:
155
155
156
156
**For Windows:**
157
157
158
-
• TelemetryMQTTWin32: contains code to send a telemetry message to an Azure IoT hub, built and run on a Windows machine.
158
+
*TelemetryMQTTWin32: contains code to send a telemetry message to an Azure IoT hub, built and run on a Windows machine.
159
159
160
-
• SubscribeMQTTWin32: contains code to subscribe to events of a given IoT hub on a Windows machine.
160
+
*SubscribeMQTTWin32: contains code to subscribe to events of a given IoT hub on a Windows machine.
161
161
162
-
• DeviceTwinMQTTWin32: contains code to query and subscribe to the device twin events of a device in the Azure IoT hub on a Windows machine.
162
+
*DeviceTwinMQTTWin32: contains code to query and subscribe to the device twin events of a device in the Azure IoT hub on a Windows machine.
163
163
164
-
• PnPMQTTWin32: contains code to send a telemetry message with IoT Plug & Play preview Device capabilities to an Azure IoT hub, built and run on a Windows machine. More on IoT Plug & Play [here](https://docs.microsoft.com/azure/iot-pnp/overview-iot-plug-and-play)
164
+
*PnPMQTTWin32: contains code to send a telemetry message with IoT Plug & Play preview Device capabilities to an Azure IoT hub, built and run on a Windows machine. More on IoT Plug & Play [here](https://docs.microsoft.com/azure/iot-pnp/overview-iot-plug-and-play)
165
165
166
166
**For Linux:**
167
167
168
-
• MQTTLinux: contains code and build script to run on Linux (WSL, Ubuntu and Raspbian have been tested so far).
168
+
*MQTTLinux: contains code and build script to run on Linux (WSL, Ubuntu, and Raspbian have been tested so far).
169
169
170
-
• LinuxConsoleVS2019: contains the same code but in a VS2019 project targeting WSL (Windows Linux sub system). This project allows you to debug the code running on Linux step by step from Visual Studio.
170
+
*LinuxConsoleVS2019: contains the same code but in a VS2019 project targeting WSL (Windows Linux sub system). This project allows you to debug the code running on Linux step by step from Visual Studio.
171
171
172
172
**For mosquitto_pub:**
173
173
174
-
• This folder contains two samples commands used with mosquitto_pub utility tool provided by Mosquitto.org.
174
+
This folder contains two samples commands used with mosquitto_pub utility tool provided by Mosquitto.org.
175
175
176
-
Mosquitto_sendmessage: to send a simple text message to an Azure IoT hub acting as a device.
177
-
178
-
Mosquitto_subscribe: to see events occurring in an Azure IoT hub.
176
+
* Mosquitto_sendmessage: to send a simple text message to an Azure IoT hub acting as a device.
179
177
178
+
* Mosquitto_subscribe: to see events occurring in an Azure IoT hub.
180
179
181
180
## Using the MQTT protocol directly (as a module)
182
181
@@ -336,7 +335,7 @@ The possible status codes are:
336
335
337
336
|Status | Description |
338
337
| ----- | ----------- |
339
-
|204| Success (no content is returned)|
338
+
|200| Success |
340
339
| 429 | Too many requests (throttled), as per [IoT Hub throttling](iot-hub-devguide-quotas-throttling.md)|
341
340
| 5**| Server errors |
342
341
@@ -367,7 +366,7 @@ The possible status codes are:
367
366
368
367
|Status | Description |
369
368
| ----- | ----------- |
370
-
|200| Success |
369
+
|204| Success (no content is returned)|
371
370
| 400 | Bad Request. Malformed JSON |
372
371
| 429 | Too many requests (throttled), as per [IoT Hub throttling](iot-hub-devguide-quotas-throttling.md)|
373
372
| 5**| Server errors |
@@ -402,7 +401,7 @@ When a device is connected, IoT Hub sends notifications to the topic `$iothub/tw
402
401
}
403
402
```
404
403
405
-
As for property updates, `null` values means that the JSON object member is being deleted. Also, note that `$version` indicates the new version of the desired properties section of the twin.
404
+
As for property updates, `null` values mean that the JSON object member is being deleted. Also, note that `$version` indicates the new version of the desired properties section of the twin.
406
405
407
406
> [!IMPORTANT]
408
407
> IoT Hub generates change notifications only when devices are connected. Make sure to implement the [device reconnection flow](iot-hub-devguide-device-twins.md#device-reconnection-flow) to keep the desired properties synchronized between IoT Hub and the device app.
0 commit comments