nRF Connect SDK API 2.8.0
Loading...
Searching...
No Matches
coap_utils.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
13#ifndef __COAP_UTILS_H__
14#define __COAP_UTILS_H__
15
16#include <zephyr/net/coap.h>
17#include <zephyr/net/net_ip.h>
18
25void coap_init(int ip_family, struct sockaddr *addr);
26
39int coap_send_request(enum coap_method method, const struct sockaddr *addr,
40 const char *const *uri_path_options, uint8_t *payload,
41 uint16_t payload_size, coap_reply_t reply_cb);
42
43#endif /* __COAP_UTILS_H__ */
44
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.