Use a thread to receive data
and in that add
while ( wiced_uart_receive_bytes( WICED_UART_1, &read, 1, WICED_NEVER_TIMEOUT ) == WICED_SUCCESS )
//add logic for resetting Bufcount and other things as per your requirement.
Thanks and Regards,
Thanks for the help !!
I did as you suggested in your response but the problem is that when executing, the program stops in this part of the code(the part you suggested).
When I use the debugger, it never go into it and I have this comments :
Failed to execute MI command:
Error message from debugger back end:
value has been optimized out
here is my code
platform_uart_transmit_bytes( &platform_uart_drivers[STDIO_UART], &data[i], sizeof( data ) );
while ( wiced_uart_receive_bytes( STDIO_UART, &c, 1, WICED_NEVER_TIMEOUT ) == WICED_SUCCESS )
Bufcount = 0;
Thanks a lot for the help