# Rtl8720dn mqtt ssl connection

**URL:** <https://forum.amebaiot.com/t/rtl8720dn-mqtt-ssl-connection/1589>\
**Category:** AT Cmd\
**Tags:** evb-bw16, rtl872xd\
**Created:** [December 11, 2022, 1:06pm UTC](https://forum.amebaiot.com/t/rtl8720dn-mqtt-ssl-connection/1589 "2022-12-11T13:06:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandrakanth\_KM](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/chandrakanth_km/32/1224_2.png) [@Chandrakanth\_KM](https://forum.amebaiot.com/u/Chandrakanth_KM)\
**Post date:** [December 11, 2022, 1:06pm UTC](https://forum.amebaiot.com/t/rtl8720dn-mqtt-ssl-connection/1589/1 "2022-12-11T13:06:42Z")

</div>

I want to make an ssl mqtt connection from bw16 module. TCP connection is working good. but i couldnt find any at commands specific for ssl connection. Can someone help me.

AT+WJAP=TP-Link-ssid,password  
AT+MQTT=1,[test.mosquitto.org](http://test.mosquitto.org)  
AT+MQTT=2,1883  
AT+MQTT=3,1  
AT+MQTT=4,CLIENTTEST  
AT+MQTT=5,mcsg1\_id  
AT+MQTT=6,password  
AT+MQTT  
these are the commands i used to connect tcp. What changes should i use for ssl.

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [December 12, 2022, 3:51am UTC](https://forum.amebaiot.com/t/rtl8720dn-mqtt-ssl-connection/1589/2 "2022-12-12T03:51:24Z")

</div>

Hi @Chandrakanth_KM

I am not familiar with `AT+WJAP` and `AT+MQTT` commands, these do not seem to be default AT commands found in the GitHub standard SDK. What firmware are you running and where did you get it from?

---

<div class="post-metadata">

**Author:** ![Chandrakanth\_KM](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/chandrakanth_km/32/1224_2.png) [@Chandrakanth\_KM](https://forum.amebaiot.com/u/Chandrakanth_KM)\
**Post date:** [December 12, 2022, 4:28am UTC](https://forum.amebaiot.com/t/rtl8720dn-mqtt-ssl-connection/1589/3 "2022-12-12T04:28:36Z")

</div>

I got the version 4.9.2 firmware and its instruction set from this site.  
[https://docs.ai-thinker.com/rtl87xx](https://docs.ai-thinker.com/rtl87xx)

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [December 12, 2022, 7:07am UTC](https://forum.amebaiot.com/t/rtl8720dn-mqtt-ssl-connection/1589/4 "2022-12-12T07:07:23Z")

</div>

That firmware is written and maintained by Ai-Thinker (B&T). IIRC it is not open-source. If it does not include the capability to use SSL for MQTT, you might want to try contacting Ai-Thinker to request for this feature.

Alternatively, you might also consider the [GitHub Standard SDK](https://github.com/ambiot/ambd_sdk/), which includes an MQTT example that can use SSL. However, AT commands for MQTT are not included, but may be manually added in.

---

<div class="post-metadata">

**Author:** ![Chandrakanth\_KM](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/chandrakanth_km/32/1224_2.png) [@Chandrakanth\_KM](https://forum.amebaiot.com/u/Chandrakanth_KM)\
**Post date:** [December 12, 2022, 7:28am UTC](https://forum.amebaiot.com/t/rtl8720dn-mqtt-ssl-connection/1589/5 "2022-12-12T07:28:26Z")

</div>

thank you for your quick response. I will consider the standard github sdk
