Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Initialize the module:

AT+CGATT=1 AT+CGDCONT=1,"IP","<apn name="">","0.0.0.0",0,0

  1. Set the MQTT parameters:

AT+SMCONF="URL","<aws iot="" endpoint="">" AT+SMCONF="Port",<mqtts port=""> AT+SMCONF="Cli","<client id="">" AT+SMCONF="User","<username>" AT+SMCONF="Pass","<password>" AT+SMCONF="Lwt","<topic>,<message>,<qos>,<retain>"

  1. Enable SSL:

AT+WSSSL=1

  1. Connect to AWS IOT broker:

AT+SMCONN

  1. Publish a message:

AT+SMPUB="<topic>","<message>",<qos>,<retain>

  1. Subscribe to a topic:

AT+SMSUB="<topic>",<qos>

Note: Make sure to replace the placeholders with actual values, and use the appropriate AT command syntax for your module.