contiki-ng / tinydtls

A version of tinyDTLS that is refactored to be more easy to use "standalone" (e.g. without bindings to a specific IP-stack).
Other
8 stars 25 forks source link

Unable to reach contiki-ng CoAP server over dtls #8

Open KlippRid opened 5 years ago

KlippRid commented 5 years ago

I am currently trying to use CoAPs on contiki-ng. I’ve made following changes before building:

in Makefile.coap MAKE_WITH_DTLS ?= 1 MAKE_COAP_DTLS_KEYSTORE ?= MAKE_COAP_DTLS_KEYSTORE_SIMPLE

and in proj-conf.h

define COAP_DTLS_PSK_DEFAULT_IDENTITY "user"

#define COAP_DTLS_PSK_DEFAULT_KEY  "password"

However when I try to use the coap-client in libcoap (the dtls bransch) to get data from my coap server run on a cc1350 sensortag with contiki-ng I get no return data. And when I look in Wireshark it seems like the UDP port is 5683 and not 5684 for the CoAP package.

Is there more that need to be enabled to get CoAP + DTLS to work in contiki-ng?

Chenamob commented 5 years ago

+ Can anyone post a working example of a coaps-client?