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-central/core/how-to-connect-devices-x509.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -339,13 +339,13 @@ To modify the sample code to use the certificates:
339
339
340
340
:::zone pivot="programming-language-javascript"
341
341
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:
343
343
344
344
```cmd/sh
345
345
npm install azure-iot-security-x509 --save
346
346
```
347
347
348
-
1. Open the **pnpTemperatureController.js** file in a text editor.
348
+
1. Open the **pnp_temperature_controller.js** file in a text editor.
349
349
350
350
1. Edit the `require` statements to include the following code:
351
351
@@ -396,7 +396,7 @@ To modify the sample code to use the certificates:
396
396
1. Execute the script and verify the device provisions successfully:
397
397
398
398
```cmd/sh
399
-
node pnpTemperatureController.js
399
+
node pnp_temperature_controller.js.js
400
400
```
401
401
402
402
:::zone-end
@@ -517,7 +517,7 @@ The device is now provisioned with X.509 certificate.
517
517
518
518
### Run a sample individual enrollment device
519
519
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).
521
521
522
522
1. Modify the environment variables you used in the sample above as follows:
523
523
@@ -530,7 +530,7 @@ The device is now provisioned with X.509 certificate.
530
530
1. Execute the script and verify the device is provisioned successfully:
531
531
532
532
```cmd/sh
533
-
node environmentalSensor.js
533
+
node pnp_temperature_controller.js
534
534
```
535
535
536
536
You can also verify that telemetry appears on the device view.
0 commit comments