nRF Connect SDK API 0.1.0
|
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.
[in] | method | CoAP method type. |
[in] | addr | pointer to socket address struct for IPv6. |
[in] | uri_path_options | pointer to CoAP URI schemes option. |
[in] | payload | pointer to the CoAP message payload. |
[in] | payload_size | size of the CoAP message payload. |
[in] | reply_cb | function to call when the response comes. |
>= | 0 On success. |
< | 0 On failure. |