You tested device to the AWS IoT core communication in the previous task. In this task, you do the opposite.
-
You use subscribe.py code to create topic subscription for the device. Goto AWS Cloud9 environment dojoenvironment, run the command python subscribe.py in the environment bash console to execute subscribe.py file.
-
The device has subscribed to the general/outbound topic and is now waiting for the message. Please keep it running like that.
-
Go back to AWS IoT subscriptions page, click on the Publish to a topic link.
-
On the next screen, enter the topic as general/outbound and change the message (if you want) to be sent. Click on the Publish a topic button. The message is published.
-
Go back to AWS Cloud9 environment dojoenvironment and you can see the message received from the AWS IoT core.
-
It was an example to see IoT core to device communication. With both way communication, the workshop is over. Kindly goto the next task to clean-up the resources for the workshop so that you don’t incur cost post the workshop.