Skip to content

Commit 2ac5e45

Browse files
committed
Updates
1 parent a5104e9 commit 2ac5e45

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

articles/iot-hub/how-to-device-twins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ zone_pivot_groups: iot-hub-howto-c2d-1
1313
ms.custom: mqtt, devx-track-csharp, devx-track-dotnet
1414
---
1515

16-
## Get started with device twins
16+
# Get started with device twins
1717

1818
Device twins are JSON documents that store device state information, including metadata, configurations, and conditions. IoT Hub persists a device twin for each device that connects to it.
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ This example subscribes to desired propery changes. Any desired property changes
100100
client.subscribeToDesiredProperties(new DesiredPropertiesUpdatedHandler(), null);
101101
```
102102

103-
In this example, the `DesiredPropertiesUpdatedHandler` desired property change callback handler calls [getDesiredProperties](https://learn.microsoft.com/en-us/java/api/com.microsoft.azure.sdk.iot.service.devicetwin.devicetwindevice?#com-microsoft-azure-sdk-iot-service-devicetwin-devicetwindevice-getdesiredproperties()) to retrieve the property changes, then prints out the updated twin properties.
103+
In this example, the `DesiredPropertiesUpdatedHandler` desired property change callback handler calls [getDesiredProperties](/java/api/com.microsoft.azure.sdk.iot.service.devicetwin.devicetwindevice?#com-microsoft-azure-sdk-iot-service-devicetwin-devicetwindevice-getdesiredproperties()) to retrieve the property changes, then prints out the updated twin properties.
104104

105105
```java
106106
private static class DesiredPropertiesUpdatedHandler implements DesiredPropertiesCallback

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ client.open() //open the connection
8787

8888
### Retrieve a device twin and examine reported properties
8989

90-
Use [getTwin](/javascript/api/azure-iot-device/client?#azure-iot-device-client-gettwin-1) to assign the twin object. This object can be used to read device twin information.
90+
Call [getTwin](/javascript/api/azure-iot-device/client?#azure-iot-device-client-gettwin-1) to assign the twin object. This object can be used to read device twin information.
9191

9292
```javascript
9393
client.getTwin(function(err, twin) {
@@ -119,7 +119,7 @@ twin.properties.reported.update(patch, function(err) {
119119
120120
### Receive notice of desired property changes
121121
122-
Use [twin.on](/javascript/api/azure-iot-device/twin?view=azure-node-latest#azure-iot-device-twin-on) to set up a desired property change event listener.
122+
Use [twin.on](/javascript/api/azure-iot-device/twin?#azure-iot-device-twin-on) to set up a desired property change event listener.
123123
124124
The desired property event listener can take one of the following forms:
125125

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ You can also call these methods to update device twins:
7878

7979
### Incoming desired properties patch handler
8080

81-
Use [on_twin_desired_properties_patch_received](/python/api/azure-iot-device/azure.iot.device.iothubdeviceclient?view=azure-python&#azure-iot-device-iothubdeviceclient-on-twin-desired-properties-patch-received) to create a handler function or coroutine that is called when a twin desired properties patch is received. The handler takes one argument, which is the twin patch in the form of a JSON dictionary object.
81+
Use [on_twin_desired_properties_patch_received](/python/api/azure-iot-device/azure.iot.device.iothubdeviceclient?&#azure-iot-device-iothubdeviceclient-on-twin-desired-properties-patch-received) to create a handler function or coroutine that is called when a twin desired properties patch is received. The handler takes one argument, which is the twin patch in the form of a JSON dictionary object.
8282

8383
This example sets up a desired properties patch handler named `twin_patch_handler`.
8484

@@ -91,7 +91,7 @@ except:
9191
client.shutdown()
9292
```
9393

94-
The twin_patch_handler receives and prints the JSON patch.
94+
The `twin_patch_handler` receives and prints the JSON desired property patch.
9595

9696
```python
9797
# Define behavior for receiving twin desired property patches

0 commit comments

Comments
 (0)