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

◆ coap_send_request()

int coap_send_request ( enum coap_method method,
const struct sockaddr * addr,
const char *const * uri_path_options,
uint8_t * payload,
uint16_t payload_size,
coap_reply_t reply_cb )

#include <include/net/coap_utils.h>

Send CoAP non-confirmable request.

Parameters
[in]methodCoAP method type.
[in]addrpointer to socket address struct for IPv6.
[in]uri_path_optionspointer to CoAP URI schemes option.
[in]payloadpointer to the CoAP message payload.
[in]payload_sizesize of the CoAP message payload.
[in]reply_cbfunction to call when the response comes.
Return values
>=0 On success.
<0 On failure.