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

◆ esb_write_payload()

int esb_write_payload ( const struct esb_payload * payload)

#include <include/esb.h>

Write a payload for transmission or acknowledgement.

This function writes a payload that is added to the queue. When the module is in PTX mode, the payload is queued for a regular transmission. When the module is in PRX mode, the payload is queued for when a packet is received that requires an acknowledgement with payload.

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