Programming Your First Code on ESP32
Having completed the setup of the development environment, VS Code, and the PlatformIO IDE extension in Chapter 10, along with your first project, it’s time to start a hands-on practical case. Beginning with this chapter, we will design a temperature and humidity monitoring application. We will use an ESP32-C3 and a DHT11 sensor to construct a hardware prototype in this chapter. In the subsequent chapters, we will establish Wi-Fi connectivity, send data and process it on AWS, and create a visualization dashboard on ThingsBoard Cloud.
By the end of this chapter, you will be able to harness ChatGPT to complete an operational hardware prototype and collect the sensor data locally.
This chapter will cover the following topics:
- Designing the application’s local logic
- Creating a flow diagram with ChatGPT
- Building a device hardware prototype
- Instructing ChatGPT to generate C++ code
- Code examples
- Using PlatformIO...