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/file-upload-dotnet.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
---
2
-
title: Upload files from devices to Azure IoT Hub with .NET | Microsoft Docs
2
+
title: Upload files from devices to Azure IoT Hub (.NET)
3
+
titleSuffix: Azure IoT Hub
3
4
description: How to upload files from a device to the cloud using Azure IoT device SDK for .NET. Uploaded files are stored in an Azure storage blob container.
4
5
author: kgremban
5
6
7
+
ms.author: kgremban
6
8
ms.service: iot-hub
7
-
services: iot-hub
8
9
ms.devlang: csharp
9
-
ms.topic: conceptual
10
+
ms.topic: how-to
10
11
ms.date: 08/24/2021
11
-
ms.author: kgremban
12
12
ms.custom: "mqtt, devx-track-csharp"
13
13
---
14
14
15
-
# Upload files from your device to the cloud with IoT Hub (.NET)
15
+
# Upload files from your device to the cloud with Azure IoT Hub (.NET)
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.
19
+
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.
20
20
21
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:
22
22
@@ -29,9 +29,9 @@ These files are typically batch processed in the cloud, using tools such as [Azu
29
29
30
30
At the end of this article, you run two .NET console apps:
31
31
32
-
***FileUploadSample**. This device app uploads a file to storage using a SAS URI provided by your IoT hub. You'll run this app from the Azure IoT C# SDK repository that you download in the prerequisites.
32
+
***FileUploadSample**. This device app uploads a file to storage using a SAS URI provided by your IoT hub. This sample is from the Azure IoT C# SDK repository that you download in the prerequisites.
33
33
34
-
***ReadFileUploadNotification**. This service app receives file upload notifications from your IoT hub. You'll create this app.
34
+
***ReadFileUploadNotification**. This service app receives file upload notifications from your IoT hub. You create this app.
35
35
36
36
> [!NOTE]
37
37
> IoT Hub supports many device platforms and languages (including C, Java, Python, and JavaScript) through Azure IoT device SDKs. Refer to the [Azure IoT Developer Center](https://azure.microsoft.com/develop/iot) to learn how to connect your device to Azure IoT Hub.
@@ -89,7 +89,7 @@ Examine the code in **FileUpLoadSample.cs**. This file contains the main sample
89
89
await blockBlobClient.UploadAsync(fileStreamSource, new BlobUploadOptions());
90
90
```
91
91
92
-
1. The code notifies the IoT hub that it has completed the upload. This tells the IoT hub that it can release resources associated with the upload (the SAS URI). If file upload notifications are enabled, the IoT hub will send a notification message to backend services.
92
+
1. The code notifies the IoT hub that it has completed the upload. This tells the IoT hub that it can release resources associated with the upload (the SAS URI). If file upload notifications are enabled, the IoT hub sends a notification message to backend services.
93
93
94
94
```csharp
95
95
var successfulFileUploadCompletionNotification = new FileUploadCompletionNotification
@@ -110,11 +110,11 @@ Examine the code in **FileUpLoadSample.cs**. This file contains the main sample
If you examine the **parameter.cs** file, you'll see that:
113
+
If you examine the **parameter.cs** file, you see that:
114
114
115
115
- The sample requires you to pass a parameter, *p*, which takes a device connection string.
116
116
117
-
- By default, the device sample uses the MQTT protocol to communicate with IoT Hub. You can use the parameter *t* to change this transport protocol. Be aware that, regardless of this selection, the Azure blob client always uses HTTPS as the protocol to upload the file Azure storage.
117
+
- By default, the device sample uses the MQTT protocol to communicate with IoT Hub. You can use the parameter *t* to change this transport protocol. Regardless of this selection, the Azure blob client always uses HTTPS as the protocol to upload the file Azure storage.
Copy file name to clipboardExpand all lines: articles/iot-hub/file-upload-java.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
@@ -1,18 +1,18 @@
1
1
---
2
-
title: Upload files from devices to Azure IoT Hub with Java | Microsoft Docs
2
+
title: Upload files from devices to Azure IoT Hub (Java)
3
+
titleSuffix: Azure IoT Hub
3
4
description: How to upload files from a device to the cloud using Azure IoT device SDK for Java. Uploaded files are stored in an Azure storage blob container.
4
5
author: kgremban
5
6
6
7
ms.author: kgremban
7
8
ms.service: iot-hub
8
-
services: iot-hub
9
9
ms.devlang: java
10
-
ms.topic: conceptual
10
+
ms.topic: how-to
11
11
ms.date: 07/18/2021
12
12
ms.custom: [amqp, mqtt, devx-track-java]
13
13
---
14
14
15
-
# Upload files from your device to the cloud with IoT Hub (Java)
15
+
# Upload files from your device to the cloud with Azure IoT Hub (Java)
You can use the portal to view the uploaded file in the storage container you configured:
293
293
294
-
:::image type="content" source="media/iot-hub-java-java-upload/uploaded-file.png" alt-text="Screenshot showing a file that had been uploaded to your storage container." lightbox="media/iot-hub-java-java-upload/uploaded-file.png":::
294
+
:::image type="content" source="media/iot-hub-java-java-upload/uploaded-file.png" alt-text="Screenshot showing a file that was uploaded to your storage container." lightbox="media/iot-hub-java-java-upload/uploaded-file.png":::
295
295
296
296
## Receive a file upload notification
297
297
@@ -458,7 +458,7 @@ In this section, you create a Java console app that receives file upload notific
458
458
```
459
459
## Run the application
460
460
461
-
Now you are ready to run the application.
461
+
Now you're ready to run the application.
462
462
463
463
At a command prompt in the `my-app` folder, run the following command:
Copy file name to clipboardExpand all lines: articles/iot-hub/file-upload-node.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
---
2
-
title: Upload files from devices to Azure IoT Hub with Node | Microsoft Docs
2
+
title: Upload files from devices to Azure IoT Hub (Node)
3
+
titleSuffix: Azure IoT Hub
3
4
description: How to upload files from a device to the cloud using Azure IoT device SDK for Node.js. Uploaded files are stored in an Azure storage blob container.
4
5
author: kgremban
5
6
6
7
ms.author: kgremban
7
8
ms.service: iot-hub
8
-
services: iot-hub
9
-
ms.devlang: javascript
10
-
ms.topic: conceptual
9
+
ms.devlang: nodejs
10
+
ms.topic: how-to
11
11
ms.date: 07/27/2021
12
12
ms.custom: mqtt, devx-track-js
13
13
---
14
14
15
-
# Upload files from your device to the cloud with IoT Hub (Node.js)
15
+
# Upload files from your device to the cloud with Azure IoT Hub (Node.js)
16
16
17
17
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 Node.js.
Copy file name to clipboardExpand all lines: articles/iot-hub/file-upload-python.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,18 @@
1
1
---
2
-
title: Upload files from devices to Azure IoT Hub with Python | Microsoft Docs
2
+
title: Upload files from devices to Azure IoT Hub (Python)
3
+
titleSuffix: Azure IoT Hub
3
4
description: How to upload files from a device to the cloud using Azure IoT device SDK for Python. Uploaded files are stored in an Azure storage blob container.
4
5
author: kgremban
6
+
7
+
ms.author: kgremban
5
8
ms.service: iot-hub
6
-
services: iot-hub
7
9
ms.devlang: python
8
-
ms.topic: conceptual
10
+
ms.topic: how-to
9
11
ms.date: 12/28/2022
10
-
ms.author: kgremban
11
12
ms.custom: mqtt, devx-track-python, py-fresh-zinc
12
13
---
13
14
14
-
# Upload files from your device to the cloud with IoT Hub (Python)
15
+
# Upload files from your device to the cloud with Azure IoT Hub (Python)
0 commit comments