kopia lustrzana https://github.com/espressif/esp-idf
66fb5a29bb
Apply the pre-commit hook whitespace fixes to all files in the repo. (Line endings, blank lines at end of file, trailing whitespace) |
||
---|---|---|
.. | ||
main | ||
CMakeLists.txt | ||
Makefile | ||
README.md | ||
example_test.py |
README.md
Synchronous I/O multiplexing example
The example demonstrates the use of synchronous I/O multiplexing by the select() function with UART and socket file descriptors. The example starts three tasks:
- The first task writes periodically to the UART1 file descriptor.
- The second task writes periodically to the socket descriptor.
- Both UART1 and the socket are configured to act as loopbacks. The third task detects by the use of select() whether it is possible to read from UART1 or the socket, and receives the sent messages from the other tasks.
See the README.md file in the upper level 'examples' directory for more information about examples.