How to adjust ESP NOW number of retries

IMK123
Posts: 4
Joined: Sat Apr 22, 2023 8:34 am

How to adjust ESP NOW number of retries

Postby IMK123 » Thu Apr 27, 2023 9:16 pm

Hello,
I am using ESP NOW in unicast mode (peer to peer pair) and wondering is it possible to set the number of packet retries when using the esp_now_send() function?
Many thanks in advance IMK

Fenribel
Posts: 2
Joined: Sat Oct 28, 2023 4:44 pm

Re: How to adjust ESP NOW number of retries

Postby Fenribel » Mon Oct 30, 2023 4:08 pm

Colleague, it seems we are doing the same task :) Are there any updates on this issue? I'm now making repeated calls to the send() function until the callback says the data has successfully reached the second device. This greatly increases the code, and you also have to think about delays between sends and other things. It would be great to have a function to adjust the number of sending attempts. It would also be great to see a “send until received” function, but this seems to be the height of the impossible...

IMK123
Posts: 4
Joined: Sat Apr 22, 2023 8:34 am

Re: How to adjust ESP NOW number of retries

Postby IMK123 » Tue Oct 31, 2023 9:35 am

As no reply, i cobbled it myself.
Basically when I get the send fail call back i send same message again for n seconds
Seems to work ok for me. Hope that helps imk

Who is online

Users browsing this forum: No registered users and 182 guests