So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By pjunni
#67109
torntrousers wrote:
laser wrote:So the question here: is it possible to retrieved broadcast messages without active association to AP (we can forget about security for now, just plain messages on 255.255.255)?


Maybe try ESP-NOW? That doesn't need to associate with the AP and in the very latest SDK it now supports broadcast too. I've some example ESP-NOW code here.


"ESP-Now doesn't work with Wifi so a gateway receiving ESP-Now transmissions can't also connect to a Wifi network, so thats made it pretty impractical for most uses." url=https://github.com/HarringayMakerSpace/ESP-Now

Seems to me ESP-Now is really meant for ESP to ESP or with devices but not for communicating online. Also the ESP8266 UDP library example https://github.com/esp8266/Arduino/blob/master/doc/esp8266wifi/udp-examples.rst seems to require a connection.

I'm looking for a way to broadcast from a router to several ESP8266 devices. Once the devices hear their name they establish a TCP connection, do some magic and go back to listening mode.