[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Recv UDP Problem
From: |
Noam Weissman |
Subject: |
Re: [lwip-users] Recv UDP Problem |
Date: |
Mon, 21 Nov 2016 13:59:54 +0000 |
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:address@hidden On Behalf Of mgirke
Sent: Monday, November 21, 2016 2:08 PM
To: address@hidden
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
- [lwip-users] Recv UDP Problem, mgirke, 2016/11/21
- Re: [lwip-users] Recv UDP Problem,
Noam Weissman <=
- Re: [lwip-users] Recv UDP Problem, Sergio R. Caprile, 2016/11/21
- Re: [lwip-users] Recv UDP Problem, mgirke, 2016/11/21
- Re: [lwip-users] Recv UDP Problem, address@hidden, 2016/11/24
- Re: [lwip-users] Recv UDP Problem, mgirke, 2016/11/25
- Re: [lwip-users] Recv UDP Problem, Michael Steinberg, 2016/11/25
- Re: [lwip-users] Recv UDP Problem, Mike Fleetwood, 2016/11/25