How to receive a whole string of characters, sent by a computer to a NUCLEO-L432KC using UART communication?
Hello everyone,
I would like to transmit strings of characters (which could be different sizes) using the Nucleo's UART serial communication. I'm using HAL_UART_Receive_IT(&huart2, &rx_buffer, 1), which receives the characters one by one and stores them into my rx_buffer, replacing the previous one.
If I increase the amount of data elements to be received, the smaller strings of characters will not be enough to fulfill the expected amount of data elements to be received, and the HAL_UART_RxCpltCallback() will not be triggered.
Is there a way to get the whole string of character, or to know if the the communication has ended, like a timeout flag?
Thanks in advance!
Loïc

