![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=1739672567-wKib7wzyaUs8CiSK9N7ZTxQBCo77NxtE-0-f9921822524f7adb0bb451cd040f7ae1)
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=1739672567-TdVrqaVJbqdUOEXmNy9yKwR4jt4yDfys-0-ed228d8cc7cf422d61fd16f91ed024c6)