• Home
Name Date Size #Lines LOC

..--

KconfigD12-May-2024627 2019

MakefileD12-May-20241.8 KiB6827

Makefile.ciD12-May-2024962 5048

README.mdD12-May-2024677 2515

app.configD12-May-2024275 96

client-coap.cD12-May-20247.1 KiB254206

client-coap.hD12-May-2024521 3012

main.cD12-May-20241.2 KiB5420

README.md

1# libcoap client example
2
3This example shows how to configure a client 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## Client invocation
12For the client:
13
14    PORT=tap0 make term
15    coapc coap://[ip6-address]/some/path
16
17The IP address to connect to needs to be that as returned by libcoap_server,
18or that of the tap0 interface, etc.
19
20## Handling the static memory allocation
21
22libcoap for RIOT is using the `sys/memarray` module and therefore there
23are certain limits. Said resources are defined in `libcoap/src/coap_mem.c`,
24but can be overwritten at compile time.
25