# RTL8722DM(AMB21) MQTT example configuration setup problem

**URL:** <https://forum.amebaiot.com/t/rtl8722dm-amb21-mqtt-example-configuration-setup-problem/1349>\
**Category:** WiFi\
**Tags:** rtl872xd\
**Created:** [July 14, 2022, 9:55am UTC](https://forum.amebaiot.com/t/rtl8722dm-amb21-mqtt-example-configuration-setup-problem/1349 "2022-07-14T09:55:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Po\_Quan\_Hsieh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/po_quan_hsieh/32/1065_2.png) [@Po\_Quan\_Hsieh](https://forum.amebaiot.com/u/Po_Quan_Hsieh)\
**Post date:** [July 14, 2022, 9:55am UTC](https://forum.amebaiot.com/t/rtl8722dm-amb21-mqtt-example-configuration-setup-problem/1349/1 "2022-07-14T09:55:25Z")

</div>

Hi,  
I started development with Standard SDK on AMB21 evaluation board.  
I follow the readme.txt in MQTT example(component\common\example\mqtt) to set up the example, except the step 1, others are configured, how do I add patch files to paths?

---

<div class="post-metadata">

**Author:** ![daphwl](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/daphwl/32/756_2.png) [@daphwl](https://forum.amebaiot.com/u/daphwl)\
**Post date:** [July 15, 2022, 2:19am UTC](https://forum.amebaiot.com/t/rtl8722dm-amb21-mqtt-example-configuration-setup-problem/1349/2 "2022-07-15T02:19:32Z")

</div>

Hi @Po_Quan_Hsieh,

You can actually skip step 1. However, you need to go to **ambd\_sdk/project/realtek\_amebaD\_va0\_example/GCC-RELEASE/project\_hp** and  
`make menuconfig` to enable MQTT on the board.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/6/6913a065971c96b5ac6434efa95971db704c475c.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/3/34414a149ddc20575eb30f25b238954eac84e207.png)

---

<div class="post-metadata">

**Author:** ![Po\_Quan\_Hsieh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/po_quan_hsieh/32/1065_2.png) [@Po\_Quan\_Hsieh](https://forum.amebaiot.com/u/Po_Quan_Hsieh)\
**Post date:** [July 15, 2022, 2:31am UTC](https://forum.amebaiot.com/t/rtl8722dm-amb21-mqtt-example-configuration-setup-problem/1349/3 "2022-07-15T02:31:13Z")

</div>

Hi @daphwl,  
My development environment is based on IAR, instead of GCC.  
Could you provide IAR setting method? Thanks.

---

<div class="post-metadata">

**Author:** ![daphwl](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/daphwl/32/756_2.png) [@daphwl](https://forum.amebaiot.com/u/daphwl)\
**Post date:** [July 15, 2022, 3:19am UTC](https://forum.amebaiot.com/t/rtl8722dm-amb21-mqtt-example-configuration-setup-problem/1349/4 "2022-07-15T03:19:46Z")

</div>

For IAR, you can also skip step 1. For step 2 and step 3, just follow the readme.txt.

For step 4,

- as shown in the picture below, under the **application** folder right click on the **mqtt** folder and select **options**  

- **Uncheck** exclude from build, then press ok  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/4/46830dcb6c68b81dee085a41ba591b00af92d75b.png)

You can skip step 5 as it is for GCC environment.

---

<div class="post-metadata">

**Author:** ![Po\_Quan\_Hsieh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/po_quan_hsieh/32/1065_2.png) [@Po\_Quan\_Hsieh](https://forum.amebaiot.com/u/Po_Quan_Hsieh)\
**Post date:** [July 15, 2022, 7:10am UTC](https://forum.amebaiot.com/t/rtl8722dm-amb21-mqtt-example-configuration-setup-problem/1349/5 "2022-07-15T07:10:27Z")

</div>

Hi @daphwl ,  
Thanks for your help, after following your hints, the example MQTT works fine.
