Hi guys ,
I am fairly new to programming in general , and right now i am facing a complicated issue .
i am using the lwip api to get some parameters from a webpage through tcp connection , using netconn functions but there is a page where the parameters that i want to send are too long >1500 so it is sent with two segments and if i want to get the two parts i have to make a loop on the netconn_recv .
I do get the two segments but then the loop blocks because netconn_recv doesn't receive any more data .
i tried many things like timeout but it doesn't work an error message pops up netconn_recvmbox
i also tried "while((err =netconn_recv(newconn, &inbuf)) == ERR_OK && inbuf != NULL){ " but it doesn't change anything
now i am trying to use a loop with :
do {
netconn_recv..
...
}while(lwip_netconn_do_recv(newconn));
but i get the error : lwip_netconn_do_recv implicit declaration of function
do you have some ideas or solutions if any of you have faced the same issue before
Thank you
PS : it is my first time on a forum so if you have some remarks concerning my post please tell me
lwip netconn_recv blocking
Re: lwip netconn_recv blocking
void netconn_set_recvtimeout ( struct netconn * aNetConn, int aTimeout );
& I also believe that IDF CAN should be fixed.
Who is online
Users browsing this forum: Google [Bot] and 91 guests