1# ESP Event synchronous example 2 3(See the README.md file in the upper level 'examples' directory for more information about examples.) 4 5 6## How to use example 7 8### Configure the project 9 10``` 11idf.py menuconfig 12``` 13 14* Set serial port under Serial Flasher Options. 15 16### Build and Flash 17 18Build the project and flash it to the board, then run monitor tool to view serial output: 19 20``` 21idf.py -p PORT flash monitor 22``` 23 24(To exit the serial monitor, type ``Ctrl-]``.) 25 26See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects. 27 28## Example Output 29 30``` 31I (409) ESP Event C++: started event loop 32event base test, ID: 0; called first round 33event base test, ID: 1; called first round 34received timeout 35event base test, ID: 0; called second round 36event base test, ID: 1; called second round 37event base test, ID: 0; called second round 38event base test, ID: 1; called second round 39event base test, ID: 0; called second round 40event base test, ID: 1; called second round 41event base test, ID: 0; called second round 42event base test, ID: 1; called second round 43I (10419) ESP Event C++: Missed: 0 events 44``` 45