This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Clarify the use of nrf_esb_set_retransmit_count

Could you clarify the use of nrf_esb_set_retransmit_count function?

From what I understood, if it is 0 and it sends a message that wants to be acknowledge , it will not wait for the ack and will always result in a failed?

So if I want to use ack, this nrf_esb_set_retransmit_count must be always >= 1 ?

  • Hi Mario

    No, even with a retransmit_count of 0 you will still check for the ACK, but the TX_FAILED interrupt will be triggered immediately if the ACK is lost, without trying to send the packet again. 

    If you change the retransmit_count to 0 in the standard PTX and PRX examples you should see that the TX_SUCCESS event still occurs, as long as there is a PRX around to receive the packets sent by the PTX. 

    Best regards
    Torbjørn

Related