Summary
In this chapter, you made the ESP32 access to the AWS cloud through MQTT over a TLS connection. This is the fundamental step to send sensor data to the AWS cloud.
In the next chapter, after a successful connection to AWS IoT Core, we will use the Arduino JSON library on the ESP32 to publish DHT11 temperature and humidity data to AWS, and we will observe the received MQTT message at AWS IoT Core. We will continue to use ChatGPT to build the code on the ESP32 to publish the MQTT topic and create a JSON payload.