Skip to content

Commit 6abb29e

Browse files
committed
Metadata and filename refresh -- c2d
1 parent 6c7a086 commit 6abb29e

14 files changed

+77
-50
lines changed

articles/iot-hub/.openpublishing.redirection.iot-hub.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,31 @@
8080
"redirect_url": "/azure/iot-develop/quickstart-send-telemetry-iot-hub?pivots=programming-language-python",
8181
"redirect_document_id": false
8282
},
83+
{
84+
"source_path_from_root": "/articles/iot-hub/iot-hub-csharp-csharp-c2d.md",
85+
"redirect_url": "/azure/iot-hub/c2d-messaging-dotnet",
86+
"redirect_document_id": true
87+
},
88+
{
89+
"source_path_from_root": "/articles/iot-hub/iot-hub-python-python-c2d.md",
90+
"redirect_url": "/azure/iot-hub/c2d-messaging-python",
91+
"redirect_document_id": true
92+
},
93+
{
94+
"source_path_from_root": "/articles/iot-hub/iot-hub-node-node-c2d.md",
95+
"redirect_url": "/azure/iot-hub/c2d-messaging-node",
96+
"redirect_document_id": true
97+
},
98+
{
99+
"source_path_from_root": "/articles/iot-hub/iot-hub-java-java-c2d.md",
100+
"redirect_url": "/azure/iot-hub/c2d-messaging-java",
101+
"redirect_document_id": true
102+
},
103+
{
104+
"source_path_from_root": "/articles/iot-hub/iot-hub-ios-swift-c2d.md",
105+
"redirect_url": "/azure/iot-hub/c2d-messaging-ios",
106+
"redirect_document_id": true
107+
},
83108
{
84109
"source_path_from_root": "/articles/iot-hub/iot-hub-devguide-glossary.md",
85110
"redirect_url": "/azure/iot-fundamentals/iot-glossary/",

articles/iot-hub/TOC.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,20 +310,20 @@
310310
- name: Send cloud-to-device messages
311311
items:
312312
- name: .NET
313-
displayName: cloud-to-device messages, C2D
314-
href: iot-hub-csharp-csharp-c2d.md
313+
displayName: cloud-to-device messages, C2D, csharp, C#
314+
href: c2d-messaging-dotnet.md
315315
- name: Python
316316
displayName: cloud-to-device messages, C2D
317-
href: iot-hub-python-python-c2d.md
317+
href: c2d-messaging-python.md
318318
- name: Node.js
319319
displayName: cloud-to-device messages, C2D
320-
href: iot-hub-node-node-c2d.md
320+
href: c2d-messaging-node.md
321321
- name: Java
322322
displayName: cloud-to-device messages, C2D
323-
href: iot-hub-java-java-c2d.md
323+
href: c2d-messaging-java.md
324324
- name: iOS
325325
displayName: cloud-to-device messages, C2D
326-
href: iot-hub-ios-swift-c2d.md
326+
href: c2d-messaging-ios.md
327327
- name: Upload files from devices
328328
items:
329329
- name: .NET

articles/iot-hub/iot-hub-csharp-csharp-c2d.md renamed to articles/iot-hub/c2d-messaging-dotnet.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: Cloud-to-device messages with Azure IoT Hub (.NET) | Microsoft Docs
3-
description: How to send cloud-to-device messages to a device from an Azure IoT hub using the Azure IoT SDKs for .NET. You modify a device app to receive cloud-to-device messages and modify a back-end app to send the cloud-to-device messages.
2+
title: Send cloud-to-device messages (.NET)
3+
titleSuffix: Azure IoT Hub
4+
description: How to send cloud-to-device messages from a back-end app and receive them on a device app using the Azure IoT SDKs for .NET.
45
author: kgremban
56

7+
ms.author: kgremban
68
ms.service: iot-hub
7-
services: iot-hub
89
ms.devlang: csharp
9-
ms.topic: conceptual
10+
ms.topic: how-to
1011
ms.date: 10/20/2021
11-
ms.author: kgremban
1212
ms.custom: [amqp, mqtt, 'Role: Cloud Development', 'Role: IoT Device', devx-track-csharp]
1313
---
1414

@@ -78,14 +78,14 @@ In this section, modify your device app to receive cloud-to-device messages from
7878
ReceiveC2dAsync();
7979
```
8080

81-
The `ReceiveAsync` method asynchronously returns the received message at the time that it is received by the device. It returns *null* after a specifiable timeout period. In this example, the default of one minute is used. When the app receives a *null*, it should continue to wait for new messages. This requirement is the reason for the `if (receivedMessage == null) continue` line.
81+
The `ReceiveAsync` method asynchronously returns the received message at the time that it's received by the device. It returns *null* after a specifiable timeout period. In this example, the default of one minute is used. When the app receives a *null*, it should continue to wait for new messages. This requirement is the reason for the `if (receivedMessage == null) continue` line.
8282

8383
The call to `CompleteAsync()` notifies IoT Hub that the message has been successfully processed and that the message can be safely removed from the device queue. The device should call this method when its processing successfully completes regardless of the protocol it's using.
8484

8585
With AMQP and HTTPS, but not MQTT, the device can also:
8686

8787
* Abandon a message, which results in IoT Hub retaining the message in the device queue for future consumption.
88-
* Reject a message, which which permanently removes the message from the device queue.
88+
* Reject a message, which permanently removes the message from the device queue.
8989

9090
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.
9191

articles/iot-hub/iot-hub-ios-swift-c2d.md renamed to articles/iot-hub/c2d-messaging-ios.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
2-
title: Cloud-to-device messages with Azure IoT Hub (iOS) | Microsoft Docs
3-
description: How to send cloud-to-device messages to a device from an Azure IoT hub using the Azure IoT SDKs for iOS.
2+
title: Send cloud-to-device messages (iOS)
3+
titleSuffix: Azure IoT Hub
4+
description: How to send cloud-to-device messages from a back-end app and receive them on a device app using the Azure IoT SDKs for iOS.
45
author: kgremban
6+
7+
ms.author: kgremban
58
ms.service: iot-hub
6-
services: iot-hub
7-
ms.topic: conceptual
9+
ms.topic: how-to
810
ms.date: 04/19/2018
9-
ms.author: kgremban
1011
ms.custom: mqtt
1112
---
1213

@@ -65,7 +66,7 @@ Along with installing the pods required for your project, the installation comma
6566

6667
### Run the sample device application
6768

68-
1. Retrieve the connection string for your device. You can copy this string from the [Azure portal](https://portal.azure.com) in the device details blade, or retrieve it with the following CLI command:
69+
1. Retrieve the connection string for your device. You can copy this string from the [Azure portal](https://portal.azure.com) in the device details page, or retrieve it with the following CLI command:
6970

7071
```azurecli-interactive
7172
az iot hub device-identity connection-string show --hub-name {YourIoTHubName} --device-id {YourDeviceID} --output table
@@ -91,9 +92,9 @@ Along with installing the pods required for your project, the installation comma
9192

9293
## Send a cloud-to-device message
9394

94-
You are now ready to receive cloud-to-device messages. Use the Azure portal to send a test cloud-to-device message to your simulated IoT device.
95+
You're now ready to receive cloud-to-device messages. Use the Azure portal to send a test cloud-to-device message to your simulated IoT device.
9596

96-
1. In the **iOS App Sample** app running on the simulated IoT device, click **Start**. The application starts sending device-to-cloud messages, but also starts listening for cloud-to-device messages.
97+
1. In the **iOS App Sample** app running on the simulated IoT device, select **Start**. The application starts sending device-to-cloud messages, but also starts listening for cloud-to-device messages.
9798

9899
![View sample IoT device app](media/iot-hub-ios-swift-c2d/view-d2c.png)
99100

articles/iot-hub/iot-hub-java-java-c2d.md renamed to articles/iot-hub/c2d-messaging-java.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: Cloud-to-device messages with Azure IoT Hub (Java) | Microsoft Docs
3-
description: How to send cloud-to-device messages to a device from an Azure IoT hub using the Azure IoT SDKs for Java. You modify a simulated device app to receive cloud-to-device messages and modify a back-end app to send the cloud-to-device messages.
2+
title: Send cloud-to-device messages (Java)
3+
titleSuffix: Azure IoT Hub
4+
description: How to send cloud-to-device messages from a back-end app and receive them on a device app using the Azure IoT SDKs for Java.
45
author: kgremban
56

67
ms.author: kgremban
78
ms.service: iot-hub
8-
services: iot-hub
99
ms.devlang: java
10-
ms.topic: conceptual
10+
ms.topic: how-to
1111
ms.date: 06/28/2017
1212
ms.custom: [amqp, mqtt, devx-track-java]
1313
---
@@ -84,12 +84,12 @@ In this section, modify your device app to receive cloud-to-device messages from
8484
mvn clean package -DskipTests
8585
```
8686

87-
The `execute` method in the `AppMessageCallback` class returns `IotHubMessageResult.COMPLETE`. This notifies IoT Hub that the message has been successfully processed and that the message can be safely removed from the device queue. The device should return this value when its processing successfully completes regardless of the protocol it's using.
87+
The `execute` method in the `AppMessageCallback` class returns `IotHubMessageResult.COMPLETE`. This status notifies IoT Hub that the message has been successfully processed and that the message can be safely removed from the device queue. The device should return this value when its processing successfully completes regardless of the protocol it's using.
8888

8989
With AMQP and HTTPS, but not MQTT, the device can also:
9090

9191
* Abandon a message, which results in IoT Hub retaining the message in the device queue for future consumption.
92-
* Reject a message, which which permanently removes the message from the device queue.
92+
* Reject a message, which permanently removes the message from the device queue.
9393

9494
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.
9595

@@ -193,7 +193,7 @@ In this section, you create a Java console app that sends cloud-to-device messag
193193

194194
## Run the applications
195195

196-
You are now ready to run the applications.
196+
You're now ready to run the applications.
197197
198198
1. At a command prompt in the simulated-device folder, run the following command to begin sending telemetry to your IoT hub and to listen for cloud-to-device messages sent from your hub:
199199

articles/iot-hub/iot-hub-node-node-c2d.md renamed to articles/iot-hub/c2d-messaging-node.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: Cloud-to-device messages with Azure IoT Hub (Node) | Microsoft Docs
3-
description: How to send cloud-to-device messages to a device from an Azure IoT hub using the Azure IoT SDKs for Node.js. You modify a simulated device app to receive cloud-to-device messages and modify a back-end app to send the cloud-to-device messages.
2+
title: Send cloud-to-device messages (Node.js)
3+
titleSuffix: Azure IoT Hub
4+
description: How to send cloud-to-device messages from a back-end app and receive them on a device app using the Azure IoT SDKs for Node.js.
45
author: kgremban
56

67
ms.author: kgremban
78
ms.service: iot-hub
8-
services: iot-hub
99
ms.devlang: javascript
10-
ms.topic: conceptual
10+
ms.topic: how-to
1111
ms.date: 06/16/2017
1212
ms.custom: [amqp, mqtt, devx-track-js]
1313
---
@@ -70,12 +70,12 @@ In this section, modify your device app to receive cloud-to-device messages from
7070
});
7171
```
7272

73-
In this example, the device invokes the **complete** function to notify IoT Hub that it has processed the message and that it can safely be removed from the device queue. The call to **complete** is not required if you are using MQTT transport and can be omitted. It is required for AMQP and HTTPS.
73+
In this example, the device invokes the **complete** function to notify IoT Hub that it has processed the message and that it can safely be removed from the device queue. The call to **complete** isn't required if you're using MQTT transport and can be omitted. It's required for AMQP and HTTPS.
7474

7575
With AMQP and HTTPS, but not MQTT, the device can also:
7676

7777
* Abandon a message, which results in IoT Hub retaining the message in the device queue for future consumption.
78-
* Reject a message, which which permanently removes the message from the device queue.
78+
* Reject a message, which permanently removes the message from the device queue.
7979

8080
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.
8181

@@ -117,7 +117,7 @@ In this section, you create a Node.js console app that sends cloud-to-device mes
117117
var Message = require('azure-iot-common').Message;
118118
```
119119

120-
5. Add the following code to **SendCloudToDeviceMessage.js** file. Replace the "{iot hub connection string}" and "{device id}" placeholder values with the IoT hub connection string and device ID you noted previously:
120+
5. Add the following code to **SendCloudToDeviceMessage.js** file. Replace the "{iot hub connection string}" and "{device ID}" placeholder values with the IoT hub connection string and device ID you noted previously:
121121
122122
```javascript
123123
var connectionString = '{iot hub connection string}';
@@ -170,7 +170,7 @@ In this section, you create a Node.js console app that sends cloud-to-device mes
170170
171171
## Run the applications
172172
173-
You are now ready to run the applications.
173+
You're now ready to run the applications.
174174
175175
1. At the command prompt in the **simulated-device** folder, run the following command to send telemetry to IoT Hub and to listen for cloud-to-device messages:
176176

articles/iot-hub/iot-hub-python-python-c2d.md renamed to articles/iot-hub/c2d-messaging-python.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
title: Cloud-to-device messages with Azure IoT Hub (Python) | Microsoft Docs
3-
description: How to send cloud-to-device messages to a device from an Azure IoT hub using the Azure IoT SDKs for Python. You modify a simulated device app to receive cloud-to-device messages and modify a back-end app to send the cloud-to-device messages.
2+
title: Send cloud-to-device messages (Python)
3+
titleSuffix: Azure IoT Hub
4+
description: How to send cloud-to-device messages from a back-end app and receive them on a device app using the Azure IoT SDKs for Python.
45
author: kgremban
6+
7+
ms.author: kgremban
58
ms.service: iot-hub
6-
services: iot-hub
79
ms.devlang: python
8-
ms.topic: conceptual
10+
ms.topic: how-to
911
ms.date: 01/02/2023
10-
ms.author: kgremban
1112
ms.custom: mqtt, devx-track-python, py-fresh-zinc
1213
---
1314

@@ -75,7 +76,7 @@ In this section, you create a Python console app to simulate a device and receiv
7576
CONNECTION_STRING = "{deviceConnectionString}"
7677
```
7778
78-
1. Define the following function that will be used to print received messages to the console:
79+
1. Define the following function that is used to print received messages to the console:
7980
8081
```python
8182
def message_handler(message):

articles/iot-hub/iot-hub-csharp-csharp-file-upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ms.custom: "mqtt, devx-track-csharp"
1818

1919
This article demonstrates how to [file upload capabilities of IoT Hub](iot-hub-devguide-file-upload.md) upload a file to [Azure blob storage](../storage/index.yml), using an Azure IoT .NET device and service SDKs.
2020

21-
The [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-csharp) quickstart and [Send cloud-to-device messages with IoT Hub](iot-hub-csharp-csharp-c2d.md) article show the basic device-to-cloud and cloud-to-device messaging functionality of IoT Hub. The [Configure Message Routing with IoT Hub](tutorial-routing.md) article shows a way to reliably store device-to-cloud messages in Microsoft Azure blob storage. However, in some scenarios, you can't easily map the data your devices send into the relatively small device-to-cloud messages that IoT Hub accepts. For example:
21+
The [Send telemetry from a device to an IoT hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-csharp) quickstart and [Send cloud-to-device messages with IoT Hub](c2d-messaging-dotnet.md) article show the basic device-to-cloud and cloud-to-device messaging functionality of IoT Hub. The [Configure Message Routing with IoT Hub](tutorial-routing.md) article shows a way to reliably store device-to-cloud messages in Microsoft Azure blob storage. However, in some scenarios, you can't easily map the data your devices send into the relatively small device-to-cloud messages that IoT Hub accepts. For example:
2222

2323
* Videos
2424
* Large files that contain images

articles/iot-hub/iot-hub-dev-guide-sas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,5 +409,5 @@ Now that you have learned how to control access IoT Hub, you may be interested i
409409
If you would like to try out some of the concepts described in this article, see the following IoT Hub tutorials:
410410

411411
* [Get started with Azure IoT Hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-nodejs)
412-
* [How to send cloud-to-device messages with IoT Hub](iot-hub-csharp-csharp-c2d.md)
412+
* [How to send cloud-to-device messages with IoT Hub](c2d-messaging-dotnet.md)
413413
* [How to process IoT Hub device-to-cloud messages](tutorial-routing.md)

articles/iot-hub/iot-hub-devguide-c2d-guidance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ Learn how to use direct methods, desired properties, and cloud-to-device message
4141

4242
* [Use direct methods](quickstart-control-device.md)
4343
* [Use desired properties to configure devices](tutorial-device-twins.md)
44-
* [Send cloud-to-device messages](iot-hub-node-node-c2d.md)
44+
* [Send cloud-to-device messages](c2d-messaging-node.md)

0 commit comments

Comments
 (0)