![Learning AWS IoT](https://wfqqreader-1252317822.image.myqcloud.com/cover/286/36700286/b_36700286.jpg)
上QQ阅读APP看书,第一时间看更新
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://epubservercos.yuewen.com/0A2E58/19470398608911406/epubprivate/OEBPS/Images/e69ac495-045d-4459-8876-7f12ebe807ca.png?sign=1738948558-Ij4QzRS3I1if8QQMvX1HpYD3Vo6RO842-0-e08082f2f48d7cba3b8b87b3da26ea12)
You can also verify on AWS IoT Management Console about this transaction:
![](https://epubservercos.yuewen.com/0A2E58/19470398608911406/epubprivate/OEBPS/Images/cccd5bbd-dfe8-4a19-957b-fb44d622f6ef.png?sign=1738948558-WAXJ8MbUrzRGVjH2UpUVeuWN5sk2HKOo-0-e72de4de9c77530702cb3664177065bd)