Post topics, source code that relate to the Arduino Platform

User avatar
By jame-james
#23656 Hi,
I'm kind of new with the esp8266. I am currently using the esp-12 model. I have managed to program it with the arduino IDE succesfully.

I am sending a UDP message to turn on a LED connected to GPIO4. When I send it to the esp-12s IP address it works perfectly. But when I send a broadcast the packets never get delivered.

Has anyone had this issue?

Thanks in advance
User avatar
By tapsa
#29335 It looks that Udp.beginPacket is just for unicast and it cannot detect if you give broadcast address to it. Support for broadcast needs that ip stack detects bcast addresses and does not try run arp request to them. That I try read that source of ip stack and it looks that there is something what maybe try do that but I have no idea why it does not work.
You can use multicast instead of that but naturally it is not so robust if you have managed switches at network.