-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Issue with UDP Multicast Client sketch #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Also I assume you are using multicast group address for |
Tested as you suggested with The Server never receives the packet, while it DOES accept packets from another Multicast client using the same Multicast IP. A bug ?, or do you want me to test something else?
|
Any suggestions Ivan? |
Reproduced, looking at this and #105 as well. |
OK, thanks for the feedback Ivan, good luck. |
The network stack needs to know which interface is used to send multicast,
|
Looks like this is going to fix mDNS as well.
|
Some suggestions:
|
Yes, sure, I removed endPacketMulticast and added some arguments to
|
This should be fixed now for wifi station interface. I haven't been able to make multicast work for softAP interface. For multicast destinations over softAP interface udp_send returns error code 1, which is not one of lwIP error codes (which are all negative), so it must be coming from the lower level (netif->output). Perhaps this issue should be raised to Espressif. |
Alas, the fix does not solve the issue, behavior is like before. The sent multicast packet is not received by my server application, while multicast packets sent from another application (Packet Sender) to the same multicast IP+port are received OK. Here's the complete sketch I use for testing.
|
My issue is solved. Today I installed the latest version and changed my example sketch above according the latest README.md. I changed Now the Multicast packet is received OK by my Multicast client (in this case a Python on my Mac). Thx for another great fix. |
I can confirm that sending UDP multicast packets is working well when the ESP8266 is a client in the wireless network, |
Has any of you tested sending mutlicast when running in SoftAP mode ? I have trouble receiving packets on android AP (only get very few packets : losing 80% of packets) while in unicast mode it works well (may loose 1% or even less) I use 2.0.0 and the following code:
|
@PyBerger has it fix since new lib release? |
Any changes? Here it appear one in 4632462734 tries. |
I'm still having some issues with the Multicast. My code looks something like this: (concerning "Serial << ;")
which creates following output on the SerialPort:
unfortunatly Wireshark on the Windows PC is not able to pick it up :-( I changed the IPAddress via Serial and got following Output
Well, Wireshark says something else, the connection is just fine and I received the package on my Windows PC.
Not sure what I am supposed to do. Thanks and best Regards |
Hi,
I created an UDP Multicast Server sketch, and that works OK. The sketch accepts UDP packets sent to the Multicast IP address, and sends a confirmation packet back to the UDP Client.
(ref. http://www.esp8266.com/viewtopic.php?f=29&t=2464 ).
Now I would like to create a sketch where the ESP is a client sending packets to an Multicast UDP server, but I am having difficulty understanding the exact use of the functions in WiFiUdp.h.
This code compiles and runs, but packets are not received by the Server. I checked the server, it receives UDP Multicast from another client perfectly.
Also tried this with the same result:
So I am confused now, give us a hint!
The text was updated successfully, but these errors were encountered: