Open Gr3yh0und opened 7 years ago
Unfortunately, it is not that easy. These errors occur because coap_dtls.c, coap_event.c, and coap_keystore.c are missing in Makefile.libcoap
. Moreover, in Makefile.contiki
, the line CFLAGS += -DWITH_CONTIKI -DHAVE_LIBTINYDTLS
would be required.
But then, tinydtls needs to be build. Usually, this would done by adding tinydtls to contiki/apps
and putting APPS += tinydtls
in Makefile.contiki
. But with the current combination of libcoap/tinydtls, this will not work out of the box. You can expect some improvements from the ongoing work by the Contiki folks but there still will be some fine-tuning required to make that fly.
I'm trying to get the DTLS example compiled for Contiki but the process failes with:
which probably happens due to the fact that coap_io.c is missing in src/platform/contiki. As src/platform/posix/coap_io.c is missing WITH_CONTIKI defs I've tried to copy the current version (dev branch) and build it which ends in:
The normal branch is compiling fine and I've also tried an older contiki version.
Background: I'm just starting to get a deeper look into that because I want to compare Contiki vs. RIOT. To make this comparison I need the same application on top.
contiki
/6lbr
bringsCoAP
/tinyDTLS
but is based onerbium
as CoAP library. tinyDTLS and libcoap are available in Contiki and RIOT - but not combined - So I thought it could be possible to make thedtls
branch work on both somehow.