CoAP和DTLS集成

Puz*_*zle 9 network-protocols dtls coap iot libcoap

我实现了CoAP(libcoap)和DTLS(tinyDTLS)的实现.如何使用DTLS(tinyDTLS)进行集成CoAP(libcoap)?

我会很感激任何建议.

小智 3

现在 libcoap 完全支持这一点;当您使用其子模块构建它时:

$ 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 <bergmann@tzi.org>
Run Code Online (Sandbox Code Playgroud)

(经过开发测试version 9184a75a21;我--disable-doxygen也在配置中添加了该行,因为这些工具未安装在此处。)