• Home
Name Date Size #Lines LOC

..--

.gitignoreD06-Mar-202526 32

MakefileD06-Mar-20251.1 KiB3427

Makefile.contikiD06-Mar-2025211 138

READMED06-Mar-2025788 2517

coap_config.hD06-Mar-20252.9 KiB10634

project-conf.hD06-Mar-2025134 85

server.cD06-Mar-20256.3 KiB193117

README

1Example of libcoap running on Contiki-NG
2========================================
3
4To run the example, do
5
6    $ make
7    $ sudo ./server.native
8
9and query `coap://[fd00::302:304:506:708]/time?ticks` with any coap tool,
10or query `coap://[fd00::302:304:506:708]/.well-known/core`
11
12This will
13
14* download Contiki-NG from the upstream git sources
15* build the server application
16* run the server application, creating a virtual network device tap0 (unless
17  that exists)
18* configure your network interface to make the server accessible.
19
20* return the appropriate response from the server to the client.
21
22The server creates a resource for 'time' with a query 'ticks'.  This is
23reported for `.well-known/core`. The work flow for adding more resources does
24not differ from regular libcoap usage.
25