esp-idf/examples/system/select
Angus Gratton 66fb5a29bb Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
..
main Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
CMakeLists.txt cmake: make main a component again 2018-09-11 09:44:12 +08:00
example_test.py ci: Modify some dut-unrelated example tests env tag from Example_WIFI to Example_GENERIC 2020-06-11 14:22:05 +08:00
Makefile Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
README.md Allow VFS file descriptors in select() 2018-05-18 08:06:33 +02:00

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:

  1. The first task writes periodically to the UART1 file descriptor.
  2. The second task writes periodically to the socket descriptor.
  3. 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.