Question
STM32 USART with unknown data length from the computer
Posted on June 01, 2018 at 09:21
Hello,
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
#stm32-uart #stm32