Ask Your Question
0

How to use Sim 7080 AT Commands for establishing an MQTTS connection with AWS IOT?

asked 2023-05-07 21:21:30 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-07 21:42:01 +0000

nofretete gravatar image
  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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-07 21:21:30 +0000

Seen: 13 times

Last updated: May 07 '23