Skip to content

Commit c8dc952

Browse files
committed
Finishing touches on wording adjustments
1 parent f1156ce commit c8dc952

File tree

6 files changed

+78
-80
lines changed

6 files changed

+78
-80
lines changed

articles/iot-hub/iot-hub-csharp-csharp-c2d.md

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,40 @@ ms.custom: [amqp, mqtt, 'Role: Cloud Development', 'Role: IoT Device', devx-tra
1616

1717
[!INCLUDE [iot-hub-selector-c2d](../../includes/iot-hub-selector-c2d.md)]
1818

19-
Azure IoT Hub is a fully managed service that helps enable reliable and secure bi-directional communications between millions of devices and a solution back end. The [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-csharp) quickstart shows how to create an IoT hub, provision a device identity in it, and code a device app that sends device-to-cloud messages.
19+
Azure IoT Hub is a fully managed service that helps enable reliable and secure bi-directional communications between millions of devices and a solution back end.
2020

21-
[!INCLUDE [iot-hub-basic](../../includes/iot-hub-basic-whole.md)]
22-
23-
This article builds on [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-csharp). It shows you how to do the following tasks:
21+
This article shows you how to:
2422

25-
* From your solution back end, send cloud-to-device messages to a single device through IoT Hub.
23+
* Send cloud-to-device messages, from your solution backend, to a single device through IoT Hub
2624

27-
* Receive cloud-to-device messages on a device.
25+
* Receive cloud-to-device messages on a device
2826

29-
* From your solution back end, request delivery acknowledgment (*feedback*) for messages sent to a device from IoT Hub.
27+
* Request delivery acknowledgment (*feedback*), from your solution backend, for messages sent to a device from IoT Hub
3028

31-
You can find more information on cloud-to-device messages in [D2C and C2D Messaging with IoT Hub](iot-hub-devguide-messaging.md).
29+
[!INCLUDE [iot-hub-basic](../../includes/iot-hub-basic-whole.md)]
3230

3331
At the end of this article, you run two .NET console apps.
3432

35-
* **SimulatedDevice**. This app connects to your IoT hub and receives cloud-to-device messages. This app is a modified version of the app created in [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-csharp).
33+
* **SimulatedDevice**: a modified version of the app created in [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-csharp), which connects to your IoT hub and receives cloud-to-device messages.
3634

37-
* **SendCloudToDevice**. This app sends a cloud-to-device message to the device app through IoT Hub, and then receives its delivery acknowledgment.
35+
* **SendCloudToDevice**: sends a cloud-to-device message to the device app through IoT Hub and then receives its delivery acknowledgment.
3836

3937
> [!NOTE]
40-
> IoT Hub has SDK support for many device platforms and languages, including C, Java, Python, and JavaScript, through [Azure IoT device SDKs](iot-hub-devguide-sdks.md). For step-by-step instructions on how to connect your device to this article's code, and generally to Azure IoT Hub, see the [IoT Hub developer guide](iot-hub-devguide.md).
41-
>
38+
> IoT Hub has SDK support for many device platforms and languages (C, Java, Python, and JavaScript) through [Azure IoT device SDKs](iot-hub-devguide-sdks.md).
39+
40+
You can find more information on cloud-to-device messages in [D2C and C2D Messaging with IoT Hub](iot-hub-devguide-messaging.md).
4241

4342
## Prerequisites
4443

4544
* Visual Studio
4645

47-
* An active Azure account. If you don't have an account, you can create a [free account](https://azure.microsoft.com/pricing/free-trial/) in just a couple of minutes.
46+
* A complete working version of the [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-java) quickstart or the [Configure message routing with IoT Hub](tutorial-routing.md) article. This cloud-to-device article builds on the quickstart.
4847

4948
* Make sure that port 8883 is open in your firewall. The device sample in this article uses MQTT protocol, which communicates over port 8883. This port may be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
5049

5150
## Receive messages in the device app
5251

53-
In this section, modify the device app you created in [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-csharp) to receive cloud-to-device messages from the IoT hub.
52+
In this section, modify your device app to receive cloud-to-device messages from the IoT hub.
5453

5554
1. In Visual Studio, in the **SimulatedDevice** project, add the following method to the **SimulatedDevice** class.
5655

@@ -90,27 +89,26 @@ With AMQP and HTTPS, but not MQTT, the device can also:
9089

9190
If something happens that prevents the device from completing, abandoning, or rejecting the message, IoT Hub will, after a fixed timeout period, queue the message for delivery again. For this reason, the message processing logic in the device app must be *idempotent*, so that receiving the same message multiple times produces the same result.
9291

93-
For more detailed information about how IoT Hub processes cloud-to-device messages, including details of the cloud-to-device message lifecycle, see [Send cloud-to-device messages from an IoT hub](iot-hub-devguide-messages-c2d.md).
92+
For more information about the cloud-to-device message lifecycle and how IoT Hub processes cloud-to-device messages, see [Send cloud-to-device messages from an IoT hub](iot-hub-devguide-messages-c2d.md).
9493

9594
> [!NOTE]
9695
> When using HTTPS instead of MQTT or AMQP as a transport, the `ReceiveAsync` method returns immediately. The supported pattern for cloud-to-device messages with HTTPS is intermittently connected devices that check for messages infrequently (a minimum of every 25 minutes). Issuing more HTTPS receives results in IoT Hub throttling the requests. For more information about the differences between MQTT, AMQP, and HTTPS support, see [Cloud-to-device communications guidance](iot-hub-devguide-c2d-guidance.md) and [Choose a communication protocol](iot-hub-devguide-protocols.md).
97-
>
9896
9997
## Get the IoT hub connection string
10098

101-
In this article, you create a back-end service to send cloud-to-device messages through the IoT hub you created in [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-csharp). To send cloud-to-device messages, your service needs the **service connect** permission. By default, every IoT Hub is created with a shared access policy named **service** that grants this permission.
99+
In this article, you create a back-end service to send cloud-to-device messages through your IoT Hub. To send cloud-to-device messages, your service needs the **service connect** permission. By default, every IoT Hub is created with a shared access policy named **service** that grants this permission.
102100

103101
[!INCLUDE [iot-hub-include-find-service-connection-string](../../includes/iot-hub-include-find-service-connection-string.md)]
104102

105103
## Send a cloud-to-device message
106104

107-
In this section, you create a .NET console app that sends cloud-to-device messages to the simulated device app.
105+
In this section, you create a .NET console app that sends cloud-to-device messages to the simulated device app. You need the device ID from your device and your IoT hub connection string.
108106

109-
1. In the current Visual Studio solution, select **File** > **New** > **Project**. In **Create a new project**, select **Console App (.NET Framework)**, and then select **Next**.
107+
1. In Visual Studio, select **File** > **New** > **Project**. In **Create a new project**, select **Console App (.NET Framework)**, and then select **Next**.
110108

111109
1. Name the project *SendCloudToDevice*, then select **Next**.
112110

113-
![Configure a new project in Visual Studio](./media/iot-hub-csharp-csharp-c2d/sendcloudtodevice-project-configure.png)
111+
:::image type="content" source="./media/iot-hub-csharp-csharp-c2d/sendcloudtodevice-project-configure.png" alt-text="Screenshot of the 'Configure a new project' popup in Visual Studio." lightbox="./media/iot-hub-csharp-csharp-c2d/sendcloudtodevice-project-configure.png":::
114112

115113
1. Accept the most recent version of the .NET Framework. Select **Create** to create the project.
116114

@@ -167,7 +165,7 @@ In this section, you create a .NET console app that sends cloud-to-device messag
167165

168166
## Receive delivery feedback
169167

170-
It is possible to request delivery (or expiration) acknowledgments from IoT Hub for each cloud-to-device message. This option enables the solution back end to easily inform retry or compensation logic. For more information about cloud-to-device feedback, see [D2C and C2D Messaging with IoT Hub](iot-hub-devguide-messaging.md).
168+
It's possible to request delivery (or expiration) acknowledgments from IoT Hub for each cloud-to-device message. This option enables the solution back end to easily inform, retry, or compensation logic. For more information about cloud-to-device feedback, see [D2C and C2D Messaging with IoT Hub](iot-hub-devguide-messaging.md).
171169

172170
In this section, you modify the **SendCloudToDevice** app to request feedback, and receive it from the IoT hub.
173171

@@ -218,6 +216,6 @@ In this section, you modify the **SendCloudToDevice** app to request feedback, a
218216

219217
## Next steps
220218

221-
In this how-to, you learned how to send and receive cloud-to-device messages.
219+
In this article, you learned how to send and receive cloud-to-device messages.
222220

223221
To learn more about developing solutions with IoT Hub, see the [IoT Hub developer guide](iot-hub-devguide.md).

articles/iot-hub/iot-hub-ios-swift-c2d.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,22 @@ ms.custom: mqtt
1414

1515
[!INCLUDE [iot-hub-selector-c2d](../../includes/iot-hub-selector-c2d.md)]
1616

17-
Azure IoT Hub is a fully managed service that helps enable reliable and secure bi-directional communications between millions of devices and a solution back end. The [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md) quickstart shows how to create an IoT hub, provision a device identity in it, and code a simulated device app that sends device-to-cloud messages.
17+
Azure IoT Hub is a fully managed service that helps enable reliable and secure bi-directional communications between millions of devices and a solution back end.
1818

1919
This article shows you how to:
2020

21-
* Receive cloud-to-device messages on a device.
22-
23-
You can find more information on cloud-to-device messages in the [messaging section of the IoT Hub developer guide](iot-hub-devguide-messaging.md).
21+
* Receive cloud-to-device messages on a device
2422

2523
At the end of this article, you run the following Swift iOS project:
2624

27-
* **sample-device**, the same app created in [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md), which connects to your IoT hub and receives cloud-to-device messages.
25+
* **sample-device**: the same app created in [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md), which connects to your IoT hub and receives cloud-to-device messages.
2826

2927
> [!NOTE]
30-
> IoT Hub has SDK support for many device platforms and languages (including C, Java, Python, and JavaScript) through Azure IoT device SDKs. For step-by-step instructions on how to connect your device to this article's code, and generally to Azure IoT Hub, see the [Azure IoT Developer Center](https://www.azure.com/develop/iot).
28+
> IoT Hub has SDK support for many device platforms and languages (including C, Java, Python, and JavaScript) through the [Azure IoT device SDKs](iot-hub-devguide-sdks.md).
3129
32-
## Prerequisites
30+
You can find more information on cloud-to-device messages in the [messaging section of the IoT Hub developer guide](iot-hub-devguide-messaging.md).
3331

34-
* An active Azure account. (If you don't have an account, you can create a [free account](https://azure.microsoft.com/pricing/free-trial/) in just a couple of minutes.)
32+
## Prerequisites
3533

3634
* An active IoT hub in Azure.
3735

0 commit comments

Comments
 (0)