13#ifndef __COAP_UTILS_H__
14#define __COAP_UTILS_H__
16#include <zephyr/net/coap.h>
17#include <zephyr/net/net_ip.h>
25void coap_init(
int ip_family,
struct sockaddr *addr);
40 const char *
const *uri_path_options, uint8_t *payload,
41 uint16_t payload_size, coap_reply_t reply_cb);
void coap_init(int ip_family, struct sockaddr *addr)
Open socket and start the receiving thread.
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)
Send CoAP non-confirmable request.