nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ NRF_MSG_WAITACK

#define NRF_MSG_WAITACK   0x200

#include <nrf_modem/include/nrf_socket.h>

Request a blocking send operation until the request is acknowledged.

Note
This flag is only supported for the nrf_send and nrf_sendto functions.

When this flag is used, write operations on datagram sockets are blocked until the data has been sent on-air, and write operations on stream sockets are blocked until data reception is acknowledged by the peer.

The operation timeout can be configured using the NRF_SO_SNDTIMEO socket option. The valid timeout values are 1 to 600 seconds.

For the NRF_SOCK_STREAM socket type, the operation is blocked until the data is acknowledged by the peer, and for the NRF_SOCK_DGRAM socket type, until the data is sent on-air by the modem. This flag is useful in scenarios where confirmation of receipt is critical.

The default behavior is to return immediately after queuing the data for sending, without waiting for acknowledgment.

Note
This send flag cannot be used along with the NRF_SO_SENDCB socket option.
This is only supported by the following modem firmware:
  • mfw_nrf91x1
  • mfw_nrf9151-ntn