Skip to content

Commit 8b097e4

Browse files
authored
Merge pull request #183037 from dominicbetts/central-javascript-paths
Fix javascript paths in tutorial
2 parents 9f3826c + aa0d5ee commit 8b097e4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

articles/iot-central/core/how-to-connect-devices-x509.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,9 @@ The device is now provisioned with X.509 certificate.
527527
set IOTHUB_DEVICE_X509_KEY=mytestselfcertprimary_key.pem
528528
```
529529
530+
> [!TIP]
531+
> You set the other required environment variables when you completed the [Create and connect a client application to your Azure IoT Central application](./tutorial-connect-device.md) tutorial.
532+
530533
1. Execute the script and verify the device is provisioned successfully:
531534
532535
```cmd/sh

includes/iot-central-connect-device-nodejs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To complete the steps in this article, you need the following resources:
2020

2121
## Review the code
2222

23-
In the copy of the Microsoft Azure IoT SDK for Node.js you downloaded previously, open the *azure-iot-sdk-node/device/samples/javascript/pnp/pnpTemperatureController.js* file in a text editor.
23+
In the copy of the Microsoft Azure IoT SDK for Node.js you downloaded previously, open the *azure-iot-sdk-node/device/samples/javascript/pnp_temperature_controller.js* file in a text editor.
2424

2525
When you run the sample to connect to IoT Central, it uses the Device Provisioning Service (DPS) to register the device and generate a connection string. The sample retrieves the DPS connection information it needs from the command-line environment.
2626

@@ -260,7 +260,7 @@ const sendCommandResponse = async (request, response, status, payload) => {
260260

261261
## Run the code
262262

263-
To run the sample application, open a command-line environment and navigate to the folder *azure-iot-sdk-node/device/samples/pnp* folder that contains the *pnpTemperatureController.js* sample file.
263+
To run the sample application, open a command-line environment and navigate to the folder *azure-iot-sdk-node/device/samples/javascript* folder that contains the *pnp_temperature_controller.js* sample file.
264264

265265
[!INCLUDE [iot-central-connection-environment](iot-central-connection-environment.md)]
266266

@@ -273,7 +273,7 @@ npm install
273273
Run the sample:
274274

275275
```cmd/sh
276-
node pnpTemperatureController.js
276+
node pnp_temperature_controller.js
277277
```
278278

279279
The following output shows the device registering and connecting to IoT Central. The sample then sends the `maxTempSinceLastReboot` property from the two thermostat components before it starts sending telemetry:

0 commit comments

Comments
 (0)