How to find number of chars/bytes to read over UART channel?
Hello all,
I am using NUCLEO-F446RE board.
I am looking for some way to find how many bytes of data is received over UART which we want to read using HAL_UART_Read API.
Normally, we will know what is the incoming data. So, depending on that we Read those many bytes of data.
But in a special scenario, I don't how many bytes of data is coming. Once data is received I need to validate it. For this, I need a way to find how many bytes are coming over UART?
Please help me out.