mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-07 02:02:54 +03:00
Update code to use new APIs [Some code changes modelled on PR #202, some code being moved between files] Remove #ifdef WITH_LWIP from coap_io.c as file is not used Add in resource time to lwip Update for Travis build Report on Contiki memory allocate failures to ease debugging Make the different memory type counts configurable by using the -D option included in a CFLAGS definition to the ./configure command line .travis.yml BUILDING Makefile.libcoap examples/contiki/Makefile examples/contiki/README new examples/contiki/server.c examples/contiki/.gitignore (new) examples/lwip/Makefile examples/lwip/README examples/lwip/lwipopts.h examples/lwip/server-coap.c examples/lwip/server.c include/coap/address.h include/coap/coap_io.h include/coap/lwippools.h include/coap/pdu.h scripts/build.sh src/address.c src/coap_io.c src/coap_io_lwip.c src/coap_session.c src/mem.c src/net.c src/pdu.c
23 lines
519 B
Plaintext
23 lines
519 B
Plaintext
Example of libcoap running on contiki
|
|
=====================================
|
|
|
|
To run the example, do
|
|
|
|
$ make
|
|
$ sudo ./server.minimal-net
|
|
|
|
(and in a second terminal)
|
|
|
|
$ sudo ip -6 a a aaaa::1/64 dev tap0
|
|
|
|
and query `coap://[aaaa::1000]/` with any coap tool.
|
|
|
|
This will
|
|
|
|
* download contike from the upstream git sources
|
|
* build the server application
|
|
* run the server application, creating a virtual network device tap0 (unless
|
|
that exists)
|
|
* configure your network interface to make the server accessible.
|
|
|