README.md
1# ESP-Event asynchronous 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
30The object is created twice, hence the started Eventloop and finished destruction lines appear twice.
31```
32NORMAL TESTING...
33received event: test/0; data: 47
34received event: test/1
35
36TIMEOUT TESTING...
37received event: test/0
38
39TIMEOUT for event: test/0
40I (10419) ESP Event C++ Async: Finished example
41```
42