ESP-NOW peer list issues #184
timmbogner
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working a lot with ESP-NOW controllers recently, getting a jump on my holiday light setup. The normal controller registration method was seemingly working fine at first. To review that process: ESP-NOW controllers send a "register" packet to the gateway. The gateway then adds the peer to the 'peer list' that is built-in (internal) to ESP-NOW functionality, and also an external peer list maintained by the FDRS gateway, which is an array that also contains a "last seen" variable. Adding the address to the internal peer list allows the ability to send one message to every peer on the list with a null-addressed ESP-NOW send command
esp_now_send(0, (uint8_t *)&thePacket, sizeof(thePacket));
.When I sent using that method, however, the transmission was only received by the first four devices that were added to the peer list. Instead, I replaced it with a for() loop that just cycled through all of the peers and send them an individual packet. Now is where it's a bit interesting:
So that is what I've done, and it is working great so far! Details on my holiday project are coming soon!
Beta Was this translation helpful? Give feedback.
All reactions