I have got TCPIP connecton between PC and STM32F429
In debug mode I see incoming data, but only once or twice , no more
what can cause It?
void startTCPProc(void *argument)
{
u16_t len;
struct netbuf *buffer;
char* bufferPoint = TCPBuffer;
unsigned char nb=0;
/* Infinite loop */
for(;;)
{
if( netconn_recv(conn, &buffer ) == ERR_OK)
{
netbuf_first(buffer);
do{
if( netbuf_data(buffer, (void *)&bufferPoint, &len) == ERR_OK)
bufferPoint = data_process(uartM3gProcHandle, bufferPoint); //to process the data
}while(netbuf_next(buffer) >= 0);
}
osDelay(20);
}
}