Name Date Size

..25-Oct-20244 KiB

app.configH A D25-Oct-2024275

client-coap.cH A D25-Oct-20247.1 KiB

client-coap.hH A D25-Oct-2024521

KconfigH A D25-Oct-2024627

main.cH A D25-Oct-20241.2 KiB

MakefileH A D25-Oct-20241.8 KiB

Makefile.ciH A D25-Oct-2024962

README.mdH A D25-Oct-2024677

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