2020-04-16 12:12 AM
Hello,
I'm trying to retrieve received data from web site, but I have almost 8Ko data and I only receive 2Ko. I tried to put it in loop in order to read every 2Ko but it's not working, I always have the only first part. (hope you understand my problem)
Here is my code :
HAL_UART_Transmit(&huart1, (uint8_t*)"AT+SHREAD=0,8236", sizeof "AT+SHREAD=0,8236", 100);
for(uint8_t i = 0; i < 4; i++)
{
HAL_UART_Receive(&huart1, (uint8_t*)RxTx_B, 2064, 1000);
HAL_UART_Transmit(&huart2, (uint8_t*)RxTx_B, sizeof(RxTx_B), 1000);
freeBuffer(RxTx_B);
}
How can I read all received data at each time ?
Solved! Go to Solution.
2020-06-17 01:34 AM
I ended up using UART_DMA_Receive with his functions DMA_Pause, DMA_Resume, DMA_Stop and ‘RxCpltCallback’
2020-06-17 01:34 AM
I ended up using UART_DMA_Receive with his functions DMA_Pause, DMA_Resume, DMA_Stop and ‘RxCpltCallback’