-
Notifications
You must be signed in to change notification settings - Fork 13.3k
UDP Multicast does not continuously receive replies! #2340
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
UDP is not a guaranteed delivery protocol ;) you might get the packet, but you might also miss it if you are doing something else. TCP should be used if you want to get all packets |
Yeah, but the question is why the delivery is okay in one direction; i.e. only the mutlicast messages are received, but not okay in the reply? and It's not that necessary to receive every packet sent but at least it should receive some packets continuously as it's written to do so. Regarding the TCP, I think it does not support multicasting I'm not an expert on this correct me if i'm wrong :) |
code above is unicast, not multicast. |
@me-no-dev is it good idea to make handler just like the `server.handleClient();`` so can manage the udp packages, or even why you don't wrap it inside your async handler repo |
There is this thing available but requires git version of this repository |
@me-no-dev the mulicast is by calling |
correct way to deal with delayed sending of packets is to check in the loop if that time has pass and act if so. Delaying there does not let you handle any incoming packet while waiting which can very well lead to missed packets. |
Thank you @me-no-dev for your reply. I will deal with the delay in a different way as your note does make sense in the sender side. But again the reply message in the receiver side is not transmitted more that 2-3 times. I have checked that by checking the on board LED |
Hi all. If I don't use any deep-sleep, everything works. I'm not ready to set-up a MTTQ broker. IDE 1.6.10, esptool.exe 0.4.9, Win10 x64 http://www.esp8266.com/viewtopic.php?p=55867#p55867
|
@iVisionary is this issue still valid in latest git? In PR #3362 (lwip2)? |
Worth a try with lwip2. |
Closing due to age, lack of answer, and problem probably solved due to numerous fixes in UDP and multicast. |
Description
Problem description
Hello everyone. I have tried these sketches below to send multicast messages to all nodes connected to this sender and receive an acknowledgement back to the sender every time the message received. The problem is the acknowledgement received once or twice only. I found that the reply is not sent from the receiver. When I reset the ESP8266 it will send the reply once or twice then stop sending. A screen shoot is attached. Please your advice on this issue.
IDE version 1.6.9
Sketch_Multicast server
Sketch_Receiver
messages here
The text was updated successfully, but these errors were encountered: