trying to use uart_write_bytes() with integers
Posted: Thu Nov 04, 2021 6:01 pm
Can uart_write_bytes() be used to send integers out the serial port ?
I get an apostrophe " on the output so it looks like only ascii
Thank you
I get an apostrophe " on the output so it looks like only ascii
Thank you
Code: Select all
int data_buf[10]={34,94,122,1223,4,5,6,7,8.9};
size_t bytes_wrote=uart_write_bytes(UART_NUM_0,(const int*)data_buf, sizeof(int) );