Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By gerardwr
#17095 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

Schermafbeelding 2015-05-10 om 17.46.06.png


UDPMulticastClient.ino.zip
You do not have the required permissions to view the files attached to this post.