-->
Page 1 of 1

Broadcast Issue

PostPosted: Sun Jul 19, 2015 1:34 pm
by jame-james
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

Re: Broadcast Issue

PostPosted: Fri Sep 18, 2015 6:45 am
by tapsa
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.