esp-idf/docs/TEMPLATE_EXAMPLE_README.md
Darian Leung de682a13b1 examples: Update system examples README
The following commit updates the first half of the the system
example README files. Some other changes were also made:

* Updated base_mac_address example
* Moved contents in GCOV README to GCOV docs
* Some *main.c file names updated
* Updated example README template
2019-08-28 16:19:40 +08:00

2.4 KiB

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.

Example Title

(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.

How to use example

Hardware Required

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.

Configure the project

idf.py menuconfig
  • If there is any project configuration that the user must set for this example, mention this here.

Build and Flash

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.

Example Output

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.

Troubleshooting

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.

Example Breakdown

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.