997 B
997 B
03_temp-humidity-web
There is no schematic for this example, it simply prints some output to the serial monitor. This is more of a build system example for untethering yourself from the Arduino IDE.
To build this example you can run the following commands.
mkdir build
cd build
cmake ..
make -j $(nproc)
To flash to your ESP or access the idf.py menuconfig
menu from the ESP-IDF you can run the same commands with make
.
make flash
make menuconfig
If Ninja is preferred:
mkdir build
cd build
cmake .. -G Nina
ninja
Dependencies
The Arduino IDE must be installed.
install ESP-IDF
git clone -b v5.3.2 git@github.com:espressif/esp-idf.git
cd esp-idf
./install.sh
# You only need to do this if you want to use ESP-IDF's idf.py helper script.
# This example uses cmake, so it's not required.
. ./export.sh