me-no-dev / ESPAsyncUDP

Async UDP library for ESP8266
173 stars 56 forks source link

AsyncUDPMulticastServer.ino example #8

Closed MolsonB closed 5 years ago

MolsonB commented 7 years ago

In your example AsyncUDPMulticastServer.ino, in the loop function, should it read udp.broadcast instead of udp.print ?

me-no-dev commented 7 years ago

there are 3 types of transmission: unicast, multicast and broadcast. broadcasting is when you send to all members of your subnet, multicasting is when you send to a special multicast IP and port and anyone on the same LAN can also listen to that address and port and can get the packet (mDNS, SSDP and many more services work like that). The third type is the most usual one: you send to a particular IP and port and the other end is also listening on the given port.

Now back on your question: You are talking about multicast server and that is not broadcast (though you can also broadcast with the multicast server), so printing to the multicast server means that the server will send the packet to the multicast address and not the broadcast one :)

BTW, really sorry I missed your question.... I have no idea how that happened

stale[bot] commented 5 years ago

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.