-->
Page 1 of 1

ESP8266 AP broadcast UDP to 3 or 4 ESP8266 STA

PostPosted: Thu Feb 22, 2018 11:21 am
by jarnoldbrown
The subject title pretty much says it all. I'm hoping to use an ESP8266 as an AP, with 3 or 4 connected ESP8266 modules connected as STA. I'd like to send broadcast USP packets to all of them every 100mS or so. One byte of payload would probably suffice.
Interested in any pointers.

Re: ESP8266 AP broadcast UDP to 3 or 4 ESP8266 STA

PostPosted: Thu Feb 22, 2018 12:16 pm
by rudy
Broadcast is not very reliable. Sending Unicast would be much better, but you would need to send once to each ESP.
This would be a good starting point. You would not need the reception part, just send duplicate the send.
https://github.com/esp8266/Arduino/blob ... amples.rst

Re: ESP8266 AP broadcast UDP to 3 or 4 ESP8266 STA

PostPosted: Thu Feb 22, 2018 12:24 pm
by jarnoldbrown
OK. I will take a look at this tomorrow. Thanks.
My thinking was that if I send broadcast ever 100mS, say, then I can tolerate a few lost packets. The slave devices only need to control a few output pins, and I'm assuming that the packets are erro-checked.

Re: ESP8266 AP broadcast UDP to 3 or 4 ESP8266 STA

PostPosted: Fri Feb 23, 2018 10:21 am
by mrburnette
I find that UDP works very well and had one transmitter and multiple receivers running for over 18 months.
https://www.hackster.io/rayburne/tardis-time-esp8266-ap-webserver-gps-6b5d2a

Ray