Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CoAP and DTLS integration

I have implementation of CoAP (libcoap), and implementation of DTLS (tinyDTLS). How can I make integration CoAP (libcoap) with DTLS (tinyDTLS)?

I will be grateful for the any advice.

like image 807
Puzzle Avatar asked Oct 30 '14 21:10

Puzzle


1 Answers

This is now supported fully in libcoap; when you build it with its submodules:

$ git clone https://github.com/obgm/libcoap --recursive
$ cd libcoap
$ ./autogen.sh
$ ./configure --enable-dtls --with-tinydtls --disable-shared --disable-doxygen --disable-manpages
$ make
$ cd examples
$ ./coap-server -A ::1 -k 1234 &
$ ./coap-client 'coaps://[::1]/' -k 1234 -u CoAP
This is a test server made with libcoap (see https://libcoap.net)
Copyright (C) 2010--2016 Olaf Bergmann <[email protected]>

(Tested with development version 9184a75a21; I added the --disable-doxygen line at configuration as well because those tools aren't installed here.)

like image 111
chrysn Avatar answered Sep 19 '22 12:09

chrysn