esp-idf/examples/peripherals/uart_select
2018-11-29 10:08:26 +01:00
..
main VFS: select() on UART should return immediately when data is buffered 2018-11-29 10:08:26 +01:00
CMakeLists.txt cmake: make main a component again 2018-09-11 09:44:12 +08:00
Makefile Allow VFS file descriptors in select() 2018-05-18 08:06:33 +02:00
README.md Allow VFS file descriptors in select() 2018-05-18 08:06:33 +02:00

UART Select Example

The UART select example is for demonstrating the use of select() for synchronous I/O multiplexing on the UART interface. The example waits for a character from UART using select() until a blocking read without delay or a successful non-blocking read is possible.

Please note that the same result can be achieved by using uart_read_bytes() but the use of select() allows to use it together with other virtual file system (VFS) drivers, e.g. LWIP sockets. For a more comprehensive example please refer to system/select.

See the README.md file in the upper level 'examples' directory for more information about examples.