Question
How to receive UART fixed length datas in sequence
Posted on January 24, 2017 at 15:27
Hi all
I'd like to use UART to receive soe fixed length datas, ex.'1234567890'.
uint8_t buff[10];
hal_uart_receive_it(&huart, buff, 10); or
hal_uart_receive_dma(&huart, buff, 10);
How should I do and then make sure the buff contain '1234567890' every time, not '5678901234' or other situation.
Thank you in advance.
