Skip to content

Commit 266007e

Browse files
committed
Update README.md
1 parent 10cfeff commit 266007e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ Simple CoAP cli client written in Go.
33

44

55
## Usage
6+
Pre-built binary can be found here: https://github.com/mainflux/coap-cli/releases/tag/v0.1.0.
67
When running, please provide following format:
7-
`go run` or, if compiled, `./binary_name` followed by method code (`get`, `put`, `post`, `delete`) and CoAP URL. After that, you can pass following flags:
8+
`coap-cli` followed by method code (`get`, `put`, `post`, `delete`) and CoAP URL. After that, you can pass following flags:
89

910
| Flag | Description | Default value |
1011
|-------|--------------------------------|----------------------------------------|
@@ -18,8 +19,8 @@ When running, please provide following format:
1819
# Examples:
1920

2021
```bash
21-
go run cmd/main.go get coap://localhost/channels/0bb5ba61-a66e-4972-bab6-26f19962678f/messages/dusan\?authorization=1e1017e6-dee7-45b4-8a13-00e6afeb66eb -O
22+
coap-cli get coap://localhost/channels/0bb5ba61-a66e-4972-bab6-26f19962678f/messages/subtopic\?authorization=1e1017e6-dee7-45b4-8a13-00e6afeb66eb -O
2223
```
2324
```bash
24-
go run cmd/main.go post coap://localhost/channels/0bb5ba61-a66e-4972-bab6-26f19962678f/messages/dusan\?authorization=1e1017e6-dee7-45b4-8a13-00e6afeb66eb -d "hello world"
25+
coap-cli post coap://localhost/channels/0bb5ba61-a66e-4972-bab6-26f19962678f/messages/subtopic\?authorization=1e1017e6-dee7-45b4-8a13-00e6afeb66eb -d "hello world"
2526
```

0 commit comments

Comments
 (0)