I am receiving UART data from the computer using my STM32 MCU with dynamic length. Sometimes the computer send 6 bytes and some time 10 bytes etc...and there is no rule for this.
Can anyone help me how to use the HAL_UART_Receive_IT in this case? Or I have to use the HAL_UART_Receive and wait for the timeout?
Thank you very much