This application provides command line access to nanocoap, an API for CoAP messaging. See the CoAP spec for background.
We support two setup options for this example:
Build with the standard Makefile
. Follow the setup instructions for
the gnrc_networking example.
Build with Makefile.slip
. Follow the setup instructions in README-slip.md,
which are based on the SLIP instructions for the gnrc_border_router
example. We also plan to provide or reference the ethos/UHCP instructions,
but we don't have it working yet.
Start a libcoap example server with the command below.
./coap-server
Enter the query below in the RIOT CLI.
> coap get fe80::d8b8:65ff:feee:121b%6 5683 /.well-known/core
CLI output:
nanocoap_cli: sending msg ID 1, 75 bytes
> nanocoap: response Success, code 2.05, 105 bytes
</>;title="General Info";ct=0,</time>;if="clock";rt="Ticks";title="Internal Clock";ct=0;obs,</async>;ct=0