UDP Multicast Client example
Posted: Sun May 10, 2015 10:56 am
Please find below a working sketch for the ESP to function as a basic UDP Multicast client.
NOTE : You will have to update to the latest version of igrr's software, in previous versions it did not work. see the github issue here:
https://github.com/esp8266/Arduino/issues/74#issuecomment-96730305
The sketch sends an UDP Multicast packet every 3 seconds to Multicast IP-address 239.0.0.57. I checked with a Python multicast receiver on my Mac that the packet is actually sent (screen dump below).
For an UDP Multicast Server sketch for the ESP look here:
http://www.esp8266.com/viewtopic.php?f=29&t=2464
NOTE : You will have to update to the latest version of igrr's software, in previous versions it did not work. see the github issue here:
https://github.com/esp8266/Arduino/issues/74#issuecomment-96730305
The sketch sends an UDP Multicast packet every 3 seconds to Multicast IP-address 239.0.0.57. I checked with a Python multicast receiver on my Mac that the packet is actually sent (screen dump below).
For an UDP Multicast Server sketch for the ESP look here:
http://www.esp8266.com/viewtopic.php?f=29&t=2464