CoAP和DTLS集成

9
我有CoAP(libcoap)的实现,和DTLS(tinyDTLS)的实现。 我该如何将CoAP(libcoap)与DTLS(tinyDTLS)集成? 非常感谢您能提供任何建议。
2个回答

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>

这是使用开发版9184a75a21进行的测试;我在配置时添加了--disable-doxygen行,因为这些工具在这里没有安装。


3

很遗憾,我声望不够,无法发表评论,即使这不是答案。 这里 是我尝试做同样事情的地方,使用了libcoap和tinydtls的客户端-服务器示例。请随意fork代码,如果您找出为什么我的客户端和服务器没有完成握手,请提交pull请求。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接