-->
Page 1 of 2

How to have 2 or more UPD services running at the same time

PostPosted: Thu Aug 22, 2019 10:38 am
by maverickchongo
Hi,

I run few UDP services on my ESP8266 on different ports, but I have found that every time one of them is running I need to stop the other ones, otherwise they interfere between each other.

I know that everytime do a espconn_send() I must set the port and IP address, but even doing that the different services seem to interfere with each other.

Have you guys experienced this?

Is there a way arount it?

Re: How to have 2 or more UPD services running at the same t

PostPosted: Thu Aug 22, 2019 7:25 pm
by davydnorris
Can you give us a more detailed description? What exactly is going on? Any debug dumps you can throw into the chat?

Also what SDK and version are you using? Using the ESP supplied lib or lwip directly?

Re: How to have 2 or more UPD services running at the same t

PostPosted: Wed Aug 28, 2019 2:07 am
by maverickchongo
davydnorris wrote:Can you give us a more detailed description? What exactly is going on? Any debug dumps you can throw into the chat?

Also what SDK and version are you using? Using the ESP supplied lib or lwip directly?


@davydnorris, this related to this post:

viewtopic.php?f=166&t=19772

When I try to run both of those UDP services together neither of them work, run one and then when I am finish with that one I run the other one, then it works fine. By the way, I am using non-os-sdk.

Re: How to have 2 or more UPD services running at the same t

PostPosted: Wed Sep 18, 2019 11:17 pm
by Solomon Candy
Are you listening on a multicast address? I found this bug while listening to multicast packets. If so I can share the patch..