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