Work in Progress. Check the project state here
This project can be used to gather temperature and humidity data using the DHT22 sensor, sent to an ESP32 module connected to a WiFi Access Point. The ESP32 then sends the values to the Ubidots Data API over HTTP using a POST request.
This is the simplest buildable example. The example is used by the idf.py create-project
command, which copies the project template to path specified by the user with the desired folder name. For more information about project creation and examples in ESP-IDF, read how to start a new project.
The sample_project template initially contains one C source file main.c. The file is located in the main folder and contains the program entry point (app_main()).
ESP-IDF projects are built using CMake. The project build configuration is contained in CMakeLists.txt
files that provide set of directives and instructions describing the project's source files and targets
(executable, library, or both).
The project folder structure includes:
├── CMakeLists.txt
├── components
│ ├── dht22
│ ├── http_client
│ └── wifi_setup
├── main
│ ├── CMakeLists.txt
│ └── main.c
└── README.md This is the file you are currently reading
Additionally, the sample project contains Makefile and component.mk files, used for the legacy Make based build system. They are not used or needed when building with CMake and idf.py.