esp_now_send(NULL,....) does Broadcast to ff:ff:ff:ff:ff:ff?

FlorianR
Posts: 28
Joined: Fri Mar 12, 2021 2:00 pm

esp_now_send(NULL,....) does Broadcast to ff:ff:ff:ff:ff:ff?

Postby FlorianR » Wed May 12, 2021 9:42 am

Hello there,
I am currently working on an ESP NOW project and can't figure something out. Maybe someone knows better ^^
When using the function esp_now_send(NULL,....) with NULL as a MAC address pointer.
In the Dokumentation it says:
1. If peer_addr is not NULL, send data to the peer whose MAC address matches peer_addr
2. If peer_addr is NULL, send data to all of the peers that are added to the peer list

But what I wittness is that it appeard to only send data to ff:ff:ff:ff:ff:ff instead. It is importatnt that it only sends to the peers in the peer list.
Do I have to scan the peer list now every time in a loop and send to all peers individually? Or did I do something wrong with the NULL?

What I understand is that there are 3 different Sending types:
Unicast: (xx:xx:xx:xx:xx) send to individual device (that needs to be in the peerlist)
Broadcast: (ff:ff:ff:ff:ff:ff) sends to all devices (even if not in the peerlist, but ff:ff:ff:ff:ff:ff must be in the peer list to work)
NULL: send to all devices from the peerlist, but not to others (does not work?)

Best regards,
Florian

Who is online

Users browsing this forum: No registered users and 118 guests