16
The information contained herein is the exclusive property of AzureWave and shall not be distributed, reproduced, or
disclosed in whole or in part without prior written permission of AzureWave.
Step 6: Connect the client to MQTT broker:
AT+MQTT_Connect
.
Step 7: Subscribe to and save MQTT topic using
AT+MQTT_Subscribe=iotdemo/1,0
Step 8: Publish to MQTT topic using
AT+MQTT_Publish=iotdemo/1, hello, 0
AT+MQTT_Publish=topic,message,qos
topic:
Topic to publish to
message:
Message to publish
qos:
0 | 1
Step 9: Use the MQTT client in the AWS IoT console to monitor the messages that device sends
to the AWS Cloud.
Sign in to the AWS IoT console.
https://console.aws.amazon.com/iotv2/
In the navigation pane, choose
Test
to open the MQTT client.
In
Subscription topic
, enter
iotdemo/#
, and then choose
Subscribe to topic
.
You should see the message send from device as like below.