Hi, Is this code actually a task ?
If it is please add a small delay at end of loop. Adding a vTaskDelay call at end of loop is common practice. This is important In order not to starve other tasks running in your system. I do not know/think that adding the delay will solve your problem but adding it, is Important. BR, Noam. -----Original Message----- From: lwip-users [mailto:[email protected]] On Behalf Of mgirke Sent: Monday, November 21, 2016 2:08 PM To: [email protected] Subject: [lwip-users] Recv UDP Problem Hi, I am able to receive UDP messages but it only works sometimes. In my example I sent a UDP message and I get an automatic reply. But this only works every 3-6 messages. What can be the problem. I am working on a Atsame70 with RTOS and Lwip 1.4 do { if (ERR_OK == netconn_recv(conn, &inbuf)) { netbuf_free(inbuf); netbuf_delete(inbuf); sprintf(text, "Antwort = %i", (counter_ms+10000)); //1024 netbuf_ref(buf, text, strlen(text)); err = netconn_sendto(conn, buf, &remote_ip_addr, 10001); } } while (1); Thanks for any ideas! -- View this message in context: http://lwip.100.n7.nabble.com/Recv-UDP-Problem-tp27826.html Sent from the lwip-users mailing list archive at Nabble.com. _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
