Skip to content

Commit d04dd51

Browse files
committed
Updated SDK sample sections
1 parent fbee217 commit d04dd51

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

includes/iot-hub-howto-device-twins-dotnet.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private async Task OnDesiredPropertyChangedAsync(TwinCollection desiredPropertie
133133
}
134134
```
135135

136-
### SDK sample
136+
### SDK device sample
137137

138138
The Azure IoT SDK for .NET provides a working sample of a device app that handles device twin tasks. For more information, see [TwinSample](https://github.com/Azure/azure-iot-sdk-csharp/tree/main/iothub/device/samples/getting%20started/TwinSample).
139139

@@ -294,3 +294,7 @@ var twinsInRedmond43UsingCellular = await query.GetNextAsTwinAsync();
294294
Console.WriteLine("Devices in Redmond43 using cellular network: {0}",
295295
string.Join(", ", twinsInRedmond43UsingCellular.Select(t => t.DeviceId)));
296296
```
297+
298+
### SDK service sample
299+
300+
The Azure IoT SDK for .NET provides a working sample of a service app that handles device twin tasks. For more information, see [Registry Manager Sample](https://github.com/Azure/azure-iot-sdk-csharp/blob/main/iothub/service/samples/how%20to%20guides/RegistryManagerSample/RegistryManagerSample.cs).

includes/iot-hub-howto-device-twins-java.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ In this example, the `DesiredPropertiesUpdatedHandler` desired property change c
132132
}
133133
```
134134

135-
### SDK sample
135+
### SDK device sample
136136

137137
The Azure IoT SDK for Java includes a working sample to test the device app concepts described in this article. For more information, see [Device Twin Sample](https://github.com/Azure/azure-iot-sdk-java/tree/main/iothub/device/iot-device-samples/device-twin-sample).
138138

@@ -272,3 +272,7 @@ while (twinClient.hasNextDeviceTwin(twinQuery)) {
272272
System.out.println(d.getDeviceId());
273273
}
274274
```
275+
276+
### SDK service sample
277+
278+
The Azure IoT SDK for Java provides a working sample of a service app that handles device twin tasks. For more information, see [Device Twin Sample](https://github.com/Azure/azure-iot-service-sdk-java/blob/main/service/iot-service-samples/device-twin-sample/src/main/java/samples/com/microsoft/azure/sdk/iot/DeviceTwinSample.java).

includes/iot-hub-howto-device-twins-node.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ You can set up a listener for a single property change. In this example, the cod
222222
twin.on('properties.desired.climate.hvac.systemControl', function (fanOn) {
223223
console.log('setting fan state to ' + fanOn);
224224
});
225-
```
225+
```
226226
227-
### SDK samples
227+
### Device SDK samples
228228
229229
The Azure IoT SDK for Node.js contains two device twin samples:
230230
@@ -342,3 +342,7 @@ query.nextAsTwin(function(err, results) {
342342
});
343343
};
344344
```
345+
346+
### Service SDK sample
347+
348+
The Azure IoT SDK for Node.js provides a working sample of a service app that handles device twin tasks. For more information, see [Device Twin Backend Service](https://github.com/Azure/azure-iot-sdk-node/tree/main/device/samples/helpers/device-twin-service) - This project is used to send device twin patch updates for a specific device.

includes/iot-hub-howto-device-twins-python.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ The `twin_patch_handler` receives and prints JSON desired property updates.
113113
print(twin_patch)
114114
```
115115

116-
### SDK samples
116+
### SDK device samples
117117

118118
The Azure IoT SDK for Python includes the following samples:
119119

@@ -198,3 +198,7 @@ print("Devices in Redmond43 plant using cellular network: {}".format(', '.join([
198198

199199
print()
200200
```
201+
202+
### SDK service sample
203+
204+
The Azure IoT SDK for Python provides a working sample of a service app that handles device twin tasks. For more information, see [Registry Manager Query Sample](https://github.com/Azure/azure-iot-hub-python/blob/main/samples/iothub_registry_manager_query_sample.py).

0 commit comments

Comments
 (0)