File: README.md

package info (click to toggle)
libcoap3 4.3.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,368 kB
  • sloc: ansic: 60,037; makefile: 1,280; sh: 938; python: 6
file content (25 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# libcoap server example

This example shows how to configure a server to use libcoap

## Fast configuration (Between RIOT instances):

Preparing the logical interfaces:

    sudo ./../../dist/tools/tapsetup/tapsetup --create 2

## Server invocation
For the server:

    PORT=tap0 make term
    coaps {stop|start}

The server supports requests for
 coap://[ip]/time?ticks
 coap://[ip]/.well-known/core

## Handling the static memory allocation

libcoap for RIOT is using the `sys/memarray` module and therefore there
are certain limits. Said resources are defined in `libcoap/src/coap_mem.c`,
but can be overwritten at compile time.