• Home
Name Date Size #Lines LOC

..--

.gitignoreD16-Dec-202426 32

MakefileD16-Dec-20241.1 KiB3427

Makefile.contikiD16-Dec-2024211 138

READMED16-Dec-2024788 2517

coap_config.hD16-Dec-20242.9 KiB10634

project-conf.hD16-Dec-2024134 85

server.cD16-Dec-20246.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