Testing all
After we write a program, comp-demo.js
, we can execute this program. Now you can run the program. Type this command:
$ node comp-demo.js
Make sure all certificate files are on the same path with comp-demo.js
. If successful, you should see the connected state and receive the incoming message:
![](https://static.packt-cdn.com/products/9781788396110/graphics/a52f639a-6e71-4d81-9388-1a4fced2b192.png)
You can also verify on AWS IoT Management Console about this transaction:
![](https://static.packt-cdn.com/products/9781788396110/graphics/2a5a17b5-7091-410d-b439-43e6dacc381d.png)