nanocoap_sock.h File Reference

nanocoap high-level API More...

Detailed Description

nanocoap high-level API

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

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.

Functions

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...