I‘m trying to message more than 20 devices, so i‘m deleting the peer after messaging it.
Basically i call esp_now_del_peer after esp_now_send.
However, it doesn‘t work. The 21st device doesn‘t seem to receive directed messages.
Am I doing something wrong or expecting something that doesn‘t work?
Esp_now_del_peer doesn‘t seem to work?
Re: Esp_now_del_peer doesn‘t seem to work?
Where do you have the delete peer instruction? Is it right after the send op?
Have you tried defining the send call back routine, then placing the command to delete the peer there?
Another idea is to check whether the peers list has any items, or 20. If so, remove a peer, then add new peer then send. This might require more work, but is a possible option.
I too am working on a project which will involve ESP-NOW and possibly more than 20 nodes, but haven't gotten to that point where I need to delete peers, but that is how I would do it. I hope this works for you! Saga
Have you tried defining the send call back routine, then placing the command to delete the peer there?
Another idea is to check whether the peers list has any items, or 20. If so, remove a peer, then add new peer then send. This might require more work, but is a possible option.
I too am working on a project which will involve ESP-NOW and possibly more than 20 nodes, but haven't gotten to that point where I need to delete peers, but that is how I would do it. I hope this works for you! Saga
Who is online
Users browsing this forum: No registered users and 134 guests