Tool/software:
Hi,
I have a Wi-SUN network running pretty well, and I'm trying to add DTLS over CoAP to it. I have a CoAP node connected to a border router and I use wfantund on a linux host.
I needed to change some defines under a few header files so I could compile the CoAP node project so mbed supports DTLS. Then I initialize the coap_service using:
coap_service_initialize(interface_id, COAPS_PORT, COAP_SERVICE_OPTIONS_SECURE, NULL, NULL);
where COPAS_PORT is 5684.
Then I use coap_service_certificate_set(service_id, cert, cert_len, priv_key, priv_key_len) to set certificate and key.
When I see that device is connected to border router, I send a coap request using:
coap_service_request_send(service_id, COAP_SERVICE_OPTIONS_SECURE, root_unicast_addr, COAPS_PORT, COAP_MSG_TYPE_CONFIRMABLE, SG_CODE_REQUEST_GET, COAP_TIMESTAMP_URI, COAP_CT_TEXT_PLAIN, NULL, 0, coap_client_response_timestamp);
The response of this request is a non zero value, so I know that it does not report an error to perform this request. I also know that the root_unicast_addr is the address of the border router.
Despite all these infos, I see no packets reaching the border router's side (I am tracking the wfantund outputs).
Could you please provide any correction on this flow or any help to debug this?
Thank you.
Best regards,
Eduardo.