1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 01:23:49 +01:00
AnnsAnn 55fa531e02 examples: restructure to use subfolders based on README structure
examples: Fix incorrect category heading

examples: shorten coap folder name

static-tests/examples: check subfolders for entries

ci/test_native: Adjust to new examples structure

examples: adjust makefiles to new structure

ci/tests: Fix symlinks to point towards proper examples
2025-02-13 11:54:09 +01:00

848 B

About

This is an additional gcoap example, but with enabled DTLS. It only provides a custom configured makefile, while the code is a symlink to the original gcoap example. Therefore, the infos and usage notes of the other README also applies to this example.

Please note, that with DTLS the default port is 5684 and not 5683, thus CoAP requests must be sent to this port.

Since DTLS has higher memory and ROM requirements, more boards are blacklisted for this example compared to the non-DTLS gcoap example.

CoAP query with DTLS enabled

With DTLS enabled the server can be queried using the default DTLS pre-shared key from the tinydtls_keys.h file.

./coap-client coaps://[fe80::1843:8eff:fe40:4eaa%tap0]/.well-known/core -k "secretPSK" -u "Client_identity"

Example response:

</cli/stats>;ct=0;rt="count";obs,</riot/board>