# SIM7070G does not connect to AWS IoT with MQTT

**URL:** <https://forum.core-electronics.com.au/t/sim7070g-does-not-connect-to-aws-iot-with-mqtt/13376>\
**Category:** Support\
**Created:** [10 March 2022 12:44 UTC](https://forum.core-electronics.com.au/t/sim7070g-does-not-connect-to-aws-iot-with-mqtt/13376 "2022-03-10T12:44:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darshan186486](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@Darshan186486](https://forum.core-electronics.com.au/u/Darshan186486)\
**Post date:** [10 March 2022 12:44 UTC](https://forum.core-electronics.com.au/t/sim7070g-does-not-connect-to-aws-iot-with-mqtt/13376/1 "2022-03-10T12:44:48Z")

</div>

I am trying to connect to AWS IoT using MQTTS on SIM7070G but it doesn’t seem to be working. Normal MQTT without SSL works just fine.

My current firmware version is 1951B08SIM7070.

Just to mention SIM7000 seem to have same set of AT commands and a similar problem.

Please check the AT Commands below and let me know if there is a problem.

_AT+CNACT=0,1_  
_OK_

_+APP PDP: 0,ACTIVE_

_AT+SMCONF=“URL”,“[XXXXXXXXX-ats.iot.ap-south-1.amazonaws.com](http://xxxxxxxxx-ats.iot.ap-south-1.amazonaws.com/)”,8883 (commented out by X for security reasons)_  
_OK_

_AT+SMCONF=“QOS”,1_  
_OK_

_AT+SMCONF=“CLEANSS”,1_  
_OK_

_AT+SMCONF=“CLIENTID”,“sim7070”_  
_OK_

_AT+CSSLCFG=convert,2,“clientca.pem” (ALL certificates that I am using here are stored in filesystem with same filename and extension)_  
_OK_

_AT+CSSLCFG=convert,1,“clientcert.pem”,“clientkey.pem”_  
_OK_

_AT+CSSLCFG=“sslversion”,0,3_  
_OK_

_AT+SMSSL=1,“clientca.pem”,“clientcert.pem”_  
_OK_

_AT+SMCONN_  
_ERROR_

Thank you.

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [11 March 2022 01:19 UTC](https://forum.core-electronics.com.au/t/sim7070g-does-not-connect-to-aws-iot-with-mqtt/13376/2 "2022-03-11T01:19:24Z")

</div>

Hi Darshan,

I’m not fully across the AT command set for the SIM7070G but I found this manual that should be able to help: [https://www.waveshare.com/w/upload/0/02/SIM7070\_SIM7080\_SIM7090\_Series\_AT\_Command\_Manual\_V1.03.pdf](https://www.waveshare.com/w/upload/0/02/SIM7070_SIM7080_SIM7090_Series_AT_Command_Manual_V1.03.pdf)  
Here’s a guide from Wavehshare that might help you get pointed in the right direction: [SIM7070G Cat-M/NB-IoT/GPRS HAT - Waveshare Wiki](https://www.waveshare.com/wiki/SIM7070G_Cat-M/NB-IoT/GPRS_HAT)

Do you have a link to the module you are using?  
Liam.

---

<div class="post-metadata">

**Author:** ![Darshan186486](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@Darshan186486](https://forum.core-electronics.com.au/u/Darshan186486)\
**Post date:** [11 March 2022 11:07 UTC](https://forum.core-electronics.com.au/t/sim7070g-does-not-connect-to-aws-iot-with-mqtt/13376/3 "2022-03-11T11:07:54Z")

</div>

Hey Liam,  
Thanks for sharing. I have been following those resources since the beginning, with no success. Rest of the things are working, like connecting with plain MQTT, HTTP. When I try MQTTS with AWS IoT, it does not work.

My module : - [SIM7070G TE BOARD-WI-1521-D (campuscomponent.com)](https://www.campuscomponent.com/products/sim7070g-te-board/2208614000002803852)
