Note that this is a template for an ESP-IDF example README.md file. When using this template, replace all these emphasised placeholders with example-specific content.
(See the README.md file in the upper level 'examples' directory for more information about examples.)
What is this example? What does it do?
What features of ESP-IDF does it use?
What could someone create based on this example? ie applications/use cases/etc
If there are any acronyms or Espressif-only words used here, explain them or mention where in the datasheet/TRM this information can be found.
If possible, example should be able to run on any commonly available ESP32 development board. Otherwise, describe what specific hardware should be used.
If any other items (server, BLE device, app, second chip, whatever) are needed, mention them here. Include links if applicable. Explain how to set them up.
idf.py menuconfig
- If there is any project configuration that the user must set for this example, mention this here.
Build the project and flash it to the board, then run monitor tool to view serial output:
idf.py -p PORT flash monitor
(Replace PORT with the name of the serial port to use.)
(To exit the serial monitor, type Ctrl-]
.)
See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.
Include an example of the console output from the running example, here:
Use this style for pasting the log.
If the user is supposed to interact with the example at this point (read/write GATT attribute, send HTTP request, press button, etc. then mention it here)
For examples where ESP32 is connected with some other hardware, include a table or schematics with connection details.
If there are any likely problems or errors which many users might encounter, mention them here. Remove this section for very simple examples where nothing is likely to go wrong.
If the example source code is lengthy, complex, or cannot be easily understood, use this section to break down and explain the source code. This can be done by breaking down the execution path step by step, or explaining what each major function/task/source file does. Add sub titles if necessary. Remove this section for very simple examples where the source code is self explanatory.