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/device-management-dotnet.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,8 +239,8 @@ You're now ready to run the apps.
239
239
240
240
1. After that the device is connected and waiting for method invocations, right-click the **TriggerReboot** project, select **Debug**, and then select **Start new instance**.
241
241
242
-
You should see "Rebooting!" written in the **SimulatedManagedDevice** console and the reported properties of the device, which include the last reboot time, written in the **TriggerReboot** console.
242
+
You should see **Rebooting** written in the **SimulatedManagedDevice** console and the reported properties of the device, which include the last reboot time, written in the **TriggerReboot** console.
243
243
244
-

244
+

Copy file name to clipboardExpand all lines: articles/iot-hub/device-management-node.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,19 +44,19 @@ In this section, you:
44
44
45
45
* Use the reported properties to enable device twin queries to identify devices and when they last rebooted.
46
46
47
-
1. Create an empty folder called **manageddevice**. In the **manageddevice** folder, create a package.json file using the following command at your command prompt. Accept all the defaults:
47
+
1. Create an empty folder called **managed-device**. In the **managed-device** folder, create a package.json file using the following command at your command prompt. Accept all the defaults:
48
48
49
49
```cmd/sh
50
50
npm init
51
51
```
52
52
53
-
2. At your command prompt in the **manageddevice** folder, run the following command to install the **azure-iot-device** Device SDK package and **azure-iot-device-mqtt** package:
53
+
2. At your command prompt in the **managed-device** folder, run the following command to install the **azure-iot-device** Device SDK package and **azure-iot-device-mqtt** package:
3. Using a text editor, create a **dmpatterns_getstarted_device.js** file in the **manageddevice** folder.
59
+
3. Using a text editor, create a **dmpatterns_getstarted_device.js** file in the **managed-device** folder.
60
60
61
61
4. Add the following 'require' statements at the start of the **dmpatterns_getstarted_device.js** file:
62
62
@@ -144,19 +144,19 @@ In this section, you:
144
144
145
145
In this section, you create a Node.js console app that initiates a remote reboot on a device using a direct method. The app uses device twin queries to discover the last reboot time for that device.
146
146
147
-
1. Create an empty folder called **triggerrebootondevice**. In the **triggerrebootondevice** folder, create a package.json file using the following command at your command prompt. Accept all the defaults:
147
+
1. Create an empty folder called **trigger-reboot-on-device**. In the **trigger-reboot-on-device** folder, create a package.json file using the following command at your command prompt. Accept all the defaults:
148
148
149
149
```cmd/sh
150
150
npm init
151
151
```
152
152
153
-
2. At your command prompt in the **triggerrebootondevice** folder, run the following command to install the **azure-iothub** Device SDK package and **azure-iot-device-mqtt** package:
153
+
2. At your command prompt in the **trigger-reboot-on-device** folder, run the following command to install the **azure-iothub** Device SDK package and **azure-iot-device-mqtt** package:
154
154
155
155
```cmd/sh
156
156
npm install azure-iothub --save
157
157
```
158
158
159
-
3. Using a text editor, create a **dmpatterns_getstarted_service.js** file in the **triggerrebootondevice** folder.
159
+
3. Using a text editor, create a **dmpatterns_getstarted_service.js** file in the **trigger-reboot-on-device** folder.
160
160
161
161
4. Add the following 'require' statements at the start of the **dmpatterns_getstarted_service.js** file:
162
162
@@ -233,13 +233,13 @@ In this section, you create a Node.js console app that initiates a remote reboot
233
233
234
234
You're now ready to run the apps.
235
235
236
-
1. At the command prompt in the **manageddevice** folder, run the following command to begin listening for the reboot direct method.
236
+
1. At the command prompt in the **managed-device** folder, run the following command to begin listening for the reboot direct method.
237
237
238
238
```cmd/sh
239
239
node dmpatterns_getstarted_device.js
240
240
```
241
241
242
-
2. At the command prompt in the **triggerrebootondevice** folder, run the following command to trigger the remote reboot and query for the device twin to find the last reboot time.
242
+
2. At the command prompt in the **trigger-reboot-on-device** folder, run the following command to trigger the remote reboot and query for the device twin to find the last reboot time.
0 commit comments