Skip to content

Commit c18b262

Browse files
authored
Updates to reflect changes we made in the node repo
We moved some samples around and renamed some of the pnp files. This PR will fix the issues.
1 parent 6d89eb2 commit c18b262

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

includes/iot-pnp-connect-device-node.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.date: 11/20/2020
88

99
This quickstart shows you how to build a sample IoT Plug and Play device application, connect it to your IoT hub, and use the Azure IoT explorer tool to view the telemetry it sends. The sample application is written in Node.js and is included in the Azure IoT device SDK for Node.js. A solution builder can use the Azure IoT explorer tool to understand the capabilities of an IoT Plug and Play device without the need to view any device code.
1010

11-
[![Browse code](../articles/iot-central/core/media/common/browse-code.svg)](https://github.com/Azure/azure-iot-sdk-node/tree/master/device/samples/javascript/pnp)
11+
[![Browse code](../articles/iot-central/core/media/common/browse-code.svg)](https://github.com/Azure/azure-iot-sdk-node/tree/master/device/samples)
1212

1313
## Prerequisites
1414

@@ -36,7 +36,7 @@ git clone https://github.com/Azure/azure-iot-sdk-node
3636

3737
You use the device SDK to build the included sample code. The application you build simulates a device that connects to an IoT hub. The application sends telemetry and properties and receives commands.
3838

39-
1. In a local terminal window, go to the folder of your cloned repository and navigate to the */azure-iot-sdk-node/device/samples/pnp* folder. Then run the following command to install the required libraries:
39+
1. In a local terminal window, go to the folder of your cloned repository and navigate to the */azure-iot-sdk-node/device/samples/javascript* folder. Then run the following command to install the required libraries:
4040

4141
```cmd/sh
4242
npm install
@@ -52,7 +52,7 @@ You use the device SDK to build the included sample code. The application you bu
5252
5353
This sample implements a simple IoT Plug and Play thermostat device. The model this sample implements doesn't use IoT Plug and Play [components](../articles/iot-develop/concepts-modeling-guide.md). The [DTDL model file for the thermostat device](https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v2/samples/Thermostat.json) defines the telemetry, properties, and commands the device implements.
5454
55-
Open the _simple_thermostat.js_ file. In this file, you can see how to:
55+
Open the _pnp_simple_thermostat.js_ file. In this file, you can see how to:
5656
5757
1. Import the required interfaces.
5858
1. Write a property update handler and a command handler.
@@ -75,7 +75,7 @@ To learn more about the sample configuration, see the [sample readme](https://gi
7575
Run the sample application to simulate an IoT Plug and Play device that sends telemetry to your IoT hub. To run the sample application, use the following command:
7676
7777
```cmd\sh
78-
node simple_thermostat.js
78+
node pnp_simple_thermostat.js
7979
```
8080

8181
You see the following output, indicating the device has begun sending telemetry data to the hub, and is now ready to receive commands and property updates.

0 commit comments

Comments
 (0)