uart_read_bytes() function
UART read bytes from UART buffer
Arguments
uart_num
UART port number, the max port number is (UART_NUM_MAX -1).
buf
pointer to the buffer.
ticks_to_wait
sTimeout, count in RTOS ticks
Return value
- (-1) Error - OTHERS (>=0) The number of bytes read from UART buffer
Examples
uart_read_bytes() is referenced by 18 libraries and example projects: