nanocoap_sock.h File Reference

nanocoap high-level API More...

Detailed Description

nanocoap high-level API

Kaspar Schleiser

Definition in file nanocoap_sock.h.

#include <stdint.h>
#include <unistd.h>
#include "net/nanocoap.h"
#include "net/sock/udp.h"
+ Include dependency graph for nanocoap_sock.h:

Go to the source code of this file.


int nanocoap_server (sock_udp_ep_t *local, uint8_t *buf, size_t bufsize)
 Start a nanocoap server instance. More...
ssize_t nanocoap_get (sock_udp_ep_t *remote, const char *path, uint8_t *buf, size_t len)
 Simple synchronous CoAP (confirmable) get. More...
ssize_t nanocoap_request (coap_pkt_t *pkt, sock_udp_ep_t *local, sock_udp_ep_t *remote, size_t len)
 Simple synchronous CoAP request. More...