# How connect UART1 to ESP32 and send AT commands for HTTP and MQTT

**URL:** <https://forum.legato.io/t/how-connect-uart1-to-esp32-and-send-at-commands-for-http-and-mqtt/6020>\
**Category:** Legato Application Framework\
**Created:** [November 21, 2021, 9:13pm UTC](https://forum.legato.io/t/how-connect-uart1-to-esp32-and-send-at-commands-for-http-and-mqtt/6020 "2021-11-21T21:13:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmbsaturno](https://avatars.discourse-cdn.com/v4/letter/v/b9e5f3/32.png) [@vmbsaturno](https://forum.legato.io/u/vmbsaturno)\
**Post date:** [November 21, 2021, 9:13pm UTC](https://forum.legato.io/t/how-connect-uart1-to-esp32-and-send-at-commands-for-http-and-mqtt/6020/1 "2021-11-21T21:13:49Z")

</div>

I am trying to implement ESP32 connected to WP7607 to connect to AWS.  
I want to use AT commands through WP7607 to be able to connect to a server, as if I were doing it with the SIM800. Is this possible?  
I try to find information about the AT commands but I don’t get them.

Are they the same as the HL command? And if not, what is the solution?

How can I program the WP7607 so that through the UART1 it receives the data and sends it to AWS? I try to find information on this but I get nothing.

Please guide me.

Thank you.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 22, 2021, 12:06am UTC](https://forum.legato.io/t/how-connect-uart1-to-esp32-and-send-at-commands-for-http-and-mqtt/6020/2 "2021-11-22T00:06:32Z")

</div>

you can see this example to transfer uart data to tcp:

> **[AirPrime - WP Series and FX30 - UART to TCP App](https://source.sierrawireless.com/resources/airprime/application_notes_and_code_samples/airprime_wp_series_and_fx30_uart_to_tcp_app/)**
>
> This package contains a simple app to open a TCP socket and connect it to a local UART, and a technical note that describes the app.

For AWS mqtt, you can see here

> [@Connecting wp77 to AWS IoT](https://forum.legato.io/t/connecting-wp77-to-aws-iot/5344/11):
>
> yes, I did get the AWS SDK for embedded C, did create the app, component and used pretty much the source code from them with just some small adjustments. Only problem I had was with the port, which I had to change from 8883 to 443 for the TLS to work properly. So, once the cm data is connected, I can connect subscribe and publish to the AWS backend. Haven`t done anything fancy really, just implemented the SDK as it came from AWS website, then compiled for the wp77xx target.
