• Home
Name Date Size #Lines LOC

..--

KconfigD06-Mar-2025373 1312

MakefileD06-Mar-20251.8 KiB7030

Makefile.ciD06-Mar-2025962 5048

README.mdD06-Mar-2025633 2616

app.configD06-Mar-2025159 74

main.cD06-Mar-20251.2 KiB5420

server-coap.cD06-Mar-20258 KiB292217

server-coap.hD06-Mar-2025521 3012

README.md

1# libcoap server example
2
3This example shows how to configure a server to use libcoap
4
5## Fast configuration (Between RIOT instances):
6
7Preparing the logical interfaces:
8
9    sudo ./../../dist/tools/tapsetup/tapsetup --create 2
10
11## Server invocation
12For the server:
13
14    PORT=tap0 make term
15    coaps {stop|start}
16
17The server supports requests for
18 coap://[ip]/time?ticks
19 coap://[ip]/.well-known/core
20
21## Handling the static memory allocation
22
23libcoap for RIOT is using the `sys/memarray` module and therefore there
24are certain limits. Said resources are defined in `libcoap/src/coap_mem.c`,
25but can be overwritten at compile time.
26