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

Merge pull request #18660 from bergzand/pr/gcoap_dtls/add_usage

examples/gcoap_dtls: Add coap-client example
This commit is contained in:
Marian Buschsieweke 2022-09-28 19:12:16 +02:00 committed by GitHub
commit edcba449f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>