UART should be send single bytes
Posted: Mon Jan 18, 2021 6:06 pm
Hello,
How I can send/receive single bytes with the UART?
The
require a const char. To this I can't assign a '0xaa'.
In the RS485_ECHO example I've the variable 'data'. This I can't assign to uart_write_bytes because it is uint_8.
Are there a function to send or recieve in bytes not in ASCII-chars?
How I can send/receive single bytes with the UART?
The
Code: Select all
int uart_write_bytes(uart_port_t uart_num, const void *src, size_t size)
In the RS485_ECHO example I've the variable 'data'. This I can't assign to uart_write_bytes because it is uint_8.
Are there a function to send or recieve in bytes not in ASCII-chars?