uart_get_tx_buffer_free_size() function
UART get TX ring buffer free space size
Arguments
uart_num
UART port number, the max port number is (UART_NUM_MAX -1).
size
Pointer of size_t to accept the free space size
Return value
- ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error