Esp_now_del_peer doesn‘t seem to work?

hdsjulian2
Posts: 15
Joined: Wed Apr 10, 2024 8:08 am

Esp_now_del_peer doesn‘t seem to work?

Postby hdsjulian2 » Sun Jul 21, 2024 11:30 pm

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?

sgarciav
Posts: 4
Joined: Mon Jul 08, 2024 7:25 pm

Re: Esp_now_del_peer doesn‘t seem to work?

Postby sgarciav » Thu Jul 25, 2024 3:25 pm

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

Who is online

Users browsing this forum: No registered users and 44 guests