cancel
Showing results for 
Search instead for 
Did you mean: 

Send an array of integers over UART without converting them to string and without the for loop

AKhot.1
Senior

Is there any way to transmit an array of integers without converting an array of integers into string?

For loop will take time. I want to transmit an array in one go.

 

1 REPLY 1
AScha.3
Chief III

so just send your int array...

HAL_UART_Transmit(&huartY, (uint8_t *)array, sizeof(array), 5);

If you feel a post has answered your question, please click "Accept as Solution".