You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@ Flags:
71
71
-m, --max-retries uint32 Max retries for keep alive (default 10)
72
72
-O, --options stringArray Add option num with contents of text to the request. If the text begins with 0x, then the hex text (two [0-9a-f] per byte) is converted to binary data.
73
73
-p, --port string Port (default "5683")
74
+
-s, --use DTLS Use DTLS
74
75
-v, --verbose Verbose output
75
76
76
77
Use "coap-cli [command] --help"for more information about a command.
@@ -81,29 +82,28 @@ The options flag accepts a comma separated string comprising of the optionID def
81
82
## Examples
82
83
83
84
```bash
85
+
# GET request with custom auth and observe
84
86
coap-cli get m/aa844fac-2f74-4ec3-8318-849b95d03bcc/c/0bb5ba61-a66e-4972-bab6-26f19962678f/subtopic --auth 1e1017e6-dee7-45b4-8a13-00e6afeb66eb -o
85
-
```
86
87
87
-
```bash
88
+
# GET request with custom options
89
+
# Options flags accept option codes and values according to RFC7252
88
90
coap-cli get m/aa844fac-2f74-4ec3-8318-849b95d03bcc/c/0bb5ba61-a66e-4972-bab6-26f19962678f/subtopic --options 6,0x00 --options 15,auth=1e1017e6-dee7-45b4-8a13-00e6afeb66eb
0 commit comments