CoAP and DTLS integration

萝らか妹 提交于 2020-03-14 06:59:26

问题


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.


回答1:


Unfortunately, I don't have enough reputation to place a comment, even though this is not an answer. Here is my attempt to do the exact same thing, using the client-server examples from both libcoap and tinydtls. Feel free to fork the code, and please sumbit a pull request if you figure out why my client and server don't finish their handshake.




回答2:


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 <bergmann@tzi.org>

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



来源:https://stackoverflow.com/questions/26663736/coap-and-dtls-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!