Skip to content

Commit 838efe5

Browse files
authored
Merge pull request #182896 from dominicbetts/central-x509-fix
Update Javascript paths
2 parents bc41057 + 3810967 commit 838efe5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,13 +339,13 @@ To modify the sample code to use the certificates:
339339
340340
:::zone pivot="programming-language-javascript"
341341
342-
1. Navigate to the _azure-iot-sdk-node/device/samples/pnp_ folder that contains the **pnpTemperatureController.js** application and run the following command to install the X.509 package:
342+
1. Navigate to the _azure-iot-sdk-node/device/samples/javascript_ folder that contains the **pnp_temperature_controller.js** application and run the following command to install the X.509 package:
343343
344344
```cmd/sh
345345
npm install azure-iot-security-x509 --save
346346
```
347347
348-
1. Open the **pnpTemperatureController.js** file in a text editor.
348+
1. Open the **pnp_temperature_controller.js** file in a text editor.
349349
350350
1. Edit the `require` statements to include the following code:
351351
@@ -396,7 +396,7 @@ To modify the sample code to use the certificates:
396396
1. Execute the script and verify the device provisions successfully:
397397
398398
```cmd/sh
399-
node pnpTemperatureController.js
399+
node pnp_temperature_controller.js.js
400400
```
401401
402402
:::zone-end
@@ -517,7 +517,7 @@ The device is now provisioned with X.509 certificate.
517517

518518
### Run a sample individual enrollment device
519519

520-
1. Copy the _mytestselfcertprimary_key.pem_ and _mytestselfcertprimary_cert.pem_ files to the _azure-iot-sdk-node/device/samples/pnp_ folder that contains the **pnpTemperatureController.js** application. You used this application when you completed the [Connect a device (JavaScript) tutorial](./tutorial-connect-device.md).
520+
1. Copy the _mytestselfcertprimary_key.pem_ and _mytestselfcertprimary_cert.pem_ files to the _azure-iot-sdk-node/device/samples/javascript_ folder that contains the **pnp_temperature_controller.js** application. You used this application when you completed the [Connect a device (JavaScript) tutorial](./tutorial-connect-device.md).
521521

522522
1. Modify the environment variables you used in the sample above as follows:
523523

@@ -530,7 +530,7 @@ The device is now provisioned with X.509 certificate.
530530
1. Execute the script and verify the device is provisioned successfully:
531531
532532
```cmd/sh
533-
node environmentalSensor.js
533+
node pnp_temperature_controller.js
534534
```
535535
536536
You can also verify that telemetry appears on the device view.

0 commit comments

Comments
 (0)