I am currently working on a project to implement OTA (Over-the-Air updates) and MQTT in AWS FreeRTOS on an STM32 microcontroller, with an ESP32 acting as the Wi-Fi modem.
I have a couple of questions:
Are there any demos or SDKs available for the setup I mentioned (AWS FreeRTOS with STM32 and ESP32)?
Is it mandatory to use TLS for secure communication in AWS IoT Core, or are there alternatives?
Any guidance, resources, or best practices for getting started with this setup would be greatly appreciated. Looking forward to your insights!
As far as I know, there is no pre-configured project for this setup. You should take a step-by-step approach to connect to AWS IoT:
First get the TCP working. You can verify that the TCP is working by communicating with a TCP echo server.
Once you have the TCP working, integrate coreMQTT and get plaintext MQTT working. You can refer to these instructions for setting up a local MQTT broker which you can use for plaintext MQTT communication.
Once you have plaintext MQTT working, integrate TLS and connect to AWS IoT.