Name Date Size

..25-Oct-20244 KiB

.gitignoreH A D25-Oct-202426

coap_config.hH A D25-Oct-20242.9 KiB

MakefileH A D25-Oct-20241.1 KiB

Makefile.contikiH A D25-Oct-2024211

project-conf.hH A D25-Oct-2024134

READMEH A D25-Oct-2024788

server.cH A D25-Oct-20246.3 KiB

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