I have been experimenting with ESP NOW and could successfully use it to transfer small data across the controller and slaves. As the transfers are based on mac address and as we can set custom mac address for esp8266, what happens if all the peers are given the same mac address? will the controller send the data to all the peers? can we use this for broadcasting the data?
Now if you still force the same MAC on multiple units, the behavior will be depending on the switch/router or the internal SDK code (if there is other router connected).
Your data may only reach one, or reach all/many of the devices or just not be sent at all. Some routers will refuse to add another device with same MAC address. And this behavior may change when the software is updated (as there is no standard defined behavior).
So please use a broadcast message using the broadcast IP, or just forward messages individually, whatever the case may be.
Thanks for your reply. I understand that having duplicate mac is not the right thing in a wifi network. But when using ESP NOW where there is no router - client relationship ( if i am correct) , how does this impact the network? When i add a peer in the controller and give the same mac to all my slaves, will the controller msg reach all the slaves?
But on such a network, assuming that it works as expected in some specific case... is likely to fail when the environment changes. As long as there is a physical layer involved (as is the case with all WiFi devices), having unique MACs is important to ensure data is correctly sent to all devices.
Without unique MAC, how will a transmitter know which device received the message and which device is acknowledging it?
Who is online
Users browsing this forum: Majestic-12 [Bot] and 17 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!