![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=1738841500-gnZA3ml158kujxW1Xs0CJJ4POmtgoPOM-0-22264dcb4038e5f91cd5c4ea5fb86362)
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=1738841500-dlcZOFgSBTJ5cFmBCFrWyqRnhS7crK19-0-db49869076bddd7314712d584159b957)