Files
libcoap/examples/lwip
chrysn 6b6840599a lwip: cleanups of leftover variables and similar compiler warnings
note on coap_read removal: as the lwip implementation currently launches
the package handling right from the recv callback, a coap_read function
is not meaningful (as it is in posix or contiki where it actively
fetches the messages from the network buffer).
2016-06-22 12:38:01 +02:00
..
2016-06-22 12:37:27 +02:00
2013-12-09 15:38:55 +01:00
2016-06-22 12:37:27 +02:00
2016-06-22 12:37:27 +02:00

Example of libcoap running on lwIP
==================================

To run the example, do

    $ make
    $ sudo ./server

(and in a second terminal)

    $ sudo ip a a dev tap0 192.168.0.1/24

and query `coap://192.168.0.2/` with any coap tool.

This will

* download lwip and lwip-contrib from the upstream git sources
* apply a required patch to lwip
* 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.

The server does not create any resources (it exposes an empty
`.well-known/core`), but the work flow for adding more resources does not
differ from regular libcoap usage. If you seem to run out of memory creating
the resources, tweak the number of pre-allocated resources in `lwippools.h`.