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:
commit
edcba449f3
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user