Skip to content

Commit 3a585e7

Browse files
committed
Fix small issues.
1 parent 2559525 commit 3a585e7

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

articles/iot-hub/iot-hub-csharp-csharp-device-management-get-started.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,18 @@ In this section, you do the following:
132132

133133
4. Add the following `using` statements at the top of the **Program.cs** file:
134134

135-
```csharp
136-
using Microsoft.Azure.Devices.Client;
137-
using Microsoft.Azure.Devices.Shared;
138-
```
135+
```csharp
136+
using Microsoft.Azure.Devices.Client;
137+
using Microsoft.Azure.Devices.Shared;
138+
```
139139

140140
5. Add the following fields to the **Program** class. Replace the placeholder value with the device connection string that you noted in the previous section.
141141

142-
```csharp
143-
static string DeviceConnectionString =
144-
"HostName=<yourIotHubName>.azure-devices.net;DeviceId=<yourIotDeviceName>;SharedAccessKey=<yourIotDeviceAccessKey>";
145-
static DeviceClient Client = null;
146-
```
142+
```csharp
143+
static string DeviceConnectionString =
144+
"HostName=<yourIotHubName>.azure-devices.net;DeviceId=<yourIotDeviceName>;SharedAccessKey=<yourIotDeviceAccessKey>";
145+
static DeviceClient Client = null;
146+
```
147147
6. Add the following to implement the direct method on the device:
148148

149149
```csharp

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,13 @@ In this section, you write a .NET console app that receives file upload notifica
132132
if (fileUploadNotification == null) continue;
133133

134134
Console.ForegroundColor = ConsoleColor.Yellow;
135-
Console.WriteLine("Received file upload noticiation: {0}", string.Join(", ", fileUploadNotification.BlobName));
135+
Console.WriteLine("Received file upload notification: {0}",
136+
string.Join(", ", fileUploadNotification.BlobName));
136137
Console.ResetColor();
137138

138139
await notificationReceiver.CompleteAsync(fileUploadNotification);
139140
}
140-
}
141+
}
141142
```
142143

143144
Note this receive pattern is the same one used to receive cloud-to-device messages from the device app.

articles/iot-hub/iot-hub-csharp-csharp-module-twin-getstarted.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ In this section, you create a .NET console app on your simulated device that upd
4343

4444
1. **Create a Visual Studio project:** In Visual Studio, add a Visual C# Windows Classic Desktop project to the existing solution by using the **Console App (.NET Framework)** project template. Make sure the .NET Framework version is 4.6.1 or later. Name the project **UpdateModuleTwinReportedProperties**.
4545

46-
![Create a visual studio project](./media\iot-hub-csharp-csharp-module-twin-getstarted/update-twins-csharp1.JPG)
46+
![Create a visual studio project](./media/iot-hub-csharp-csharp-module-twin-getstarted/update-twins-csharp1.JPG)
4747

4848
2. **Install the latest Azure IoT Hub .NET device SDK:** Module identity and module twin is in public preview. It's only availble in the IoT Hub prerelease device SDKs. In Visual Studio, open tools > Nuget package manager > manage Nuget packages for solution. Search Microsoft.Azure.Devices.Client. Make sure you've checked include prerelease check box. Select the latest version and install. Now you have access to all the module features.
4949

50-
![Install Azure IoT Hub .NET service SDK V1.16.0-preview-005](./media\iot-hub-csharp-csharp-module-twin-getstarted/install-sdk.png)
50+
![Install Azure IoT Hub .NET service SDK V1.16.0-preview-005](./media/iot-hub-csharp-csharp-module-twin-getstarted/install-sdk.png)
5151

5252
3. **Get your module connection string** -- now if you login to [Azure portal](https://portal.azure.com/). Navigate to your IoT Hub and click IoT Devices. Find myFirstDevice, open it and you see myFirstModule was successfuly created. Copy the module connection string. It is needed in the next step.
5353

54-
![Azure portal module detail](./media\iot-hub-csharp-csharp-module-twin-getstarted/module-detail.JPG)
54+
![Azure portal module detail](./media/iot-hub-csharp-csharp-module-twin-getstarted/module-detail.JPG)
5555

5656
4. **Create UpdateModuleTwinReportedProperties console app**
5757

0 commit comments

Comments
 (0)