Ad

AWS IoT Private.pem.key Doesn't Exist

When I am trying to run the following node.js example from AWS IoT I get this error(following this tutorial):

[email protected]:~/aws-iot-device-sdk-js/examples $ node device-example.js -g

private.pem.key doesn't exist (--help for usage)

However I have the private.pem.key in ~/certs folder as requested by the tutorial.

[email protected]:~/aws-iot-device-sdk-js/examples $ vi device-example.js 
[email protected]:~/aws-iot-device-sdk-js/examples $ ls ~/certs/private.pem.key 
/home/pi/certs/private.pem.key
Ad

Answer

The device-example.js program is designed to be run in pairs; each process communicates with the other through the AWS IoT platform. You'll need to start another copy of the program (it can be on another host) in order to see them communicating. More information about running the example programs can be found here. Thanks for using AWS IoT.

Ad
source: stackoverflow.com
Ad