uart_get_buffered_data_len() function
UART get RX ring buffer cached data length
Arguments
uart_num
UART port number, the max port number is (UART_NUM_MAX -1).
size
Pointer of size_t to accept cached data length
Return value
- ESP_OK Success - ESP_FAIL Parameter error
Examples
uart_get_buffered_data_len() is referenced by 5 libraries and example projects: