1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples/gcoap_dtls: Add coap-client example

This commit is contained in:
Koen Zandberg 2022-09-28 11:57:51 +02:00
parent e9b5bd712c
commit 9b47caa025
No known key found for this signature in database
GPG Key ID: BA1718B37D79F51C

View File

@ -10,3 +10,14 @@ must be sent to this port.
Since DTLS has higher memory and 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>