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?
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"
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?