nRF Connect SDK API 2.8.0
Loading...
Searching...
No Matches

◆ esb_reuse_pid()

int esb_reuse_pid ( uint8_t pipe)

#include <include/esb.h>

Reuse a packet ID for a specific pipe.

The ESB protocol uses a 2-bit sequence number (packet ID) to identify retransmitted packets. By default, the packet ID is incremented for every uploaded packet. Use this function to prevent this and send two different packets with the same packet ID.

Parameters
[in]pipePipe.
Return values
0If successful. Otherwise, a (negative) error code is returned.