Skip to main content
AKhot.1
Associate III
July 24, 2023
Question

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

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.

 

    This topic has been closed for replies.

    1 reply

    AScha.3
    Super User
    July 24, 2023

    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 on " Best Answer ".