1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 01:29:46 +01:00
RIOT/examples/gcoap_dtls
2024-05-14 09:52:49 +00:00
..
client.c examples/gcoap: split client and server implementation 2022-01-04 19:04:46 +01:00
gcoap_example.h examples/gcoap: split client and server implementation 2022-01-04 19:04:46 +01:00
main.c example/gcoap: add DTLS support 2021-07-07 14:45:30 +02:00
Makefile Merge pull request #20554 from fabian18/pr/examples/gcoap_input_URI_and_proxy_fixes 2024-05-14 09:52:49 +00:00
Makefile.ci boards/weact-g030f6: add new board 2024-02-05 00:45:42 +01:00
Makefile.slip example/gcoap: add DTLS support 2021-07-07 14:45:30 +02:00
README.md examples/gcoap_dtls: Increase stack size 2023-01-22 14:56:30 +01:00
server.c examples/gcoap: split client and server implementation 2022-01-04 19:04:46 +01:00
tinydtls_keys.h example/gcoap: add DTLS support 2021-07-07 14:45:30 +02:00

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>