Can I Use ESP8266 (AT Command) for TLS MQTT Connection to AWS IoT Broker with STM32?

Hi all,

I’m working on a project with an STM32 microcontroller and an ESP8266 wifi modem (running AT firmware). My goal is to connect to the AWS IoT MQTT broker using a secure TLS connection.

I have a few specific questions:

  1. Is it possible to establish a secure MQTT connection to AWS IoT using only the ESP8266’s AT command set?
  2. If so, how can I handle the AWS IoT root CA, and private key using AT commands?
  3. Are there any known limitations or issues with using the ESP8266 in this way for AWS IoT, or is it recommended to offload the TLS handling to STM32 instead?

Any guidance, examples, or references would be highly appreciated!

Thanks in advance!

Hi @ShreyAcharya,
Thank you for reaching out to us. We appreciate your inquiry. IMO, your question seems to be more closely related to the ESP8266 platform. For the most accurate and efficient assistance, it might be beneficial to contact Espressif directly, as they are the experts on this particular hardware. Please let us know if there’s anything else we can help you with.

You might be interested in this ESP doc.

For ESP8266 devices, only one SSL connection can be established due to limited memory.

Thank you.

1 Like