Skip to content

Commit 10cfeff

Browse files
committed
Remove binaries
1 parent b49aa6e commit 10cfeff

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
# Test binary, build with `go test -c`
99
*.test
10-
10+
build/*
1111
# Output of the go coverage tool, specifically when used with LiteIDE
1212
*.out

build/coap-client

-2.27 MB
Binary file not shown.

cmd/main.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ package main
33
import (
44
"errors"
55
"flag"
6-
"fmt"
76
"log"
87
"net/url"
98
"os"
109
"strings"
1110

12-
coap "github.com/dusanb94/coap-cli/coap"
11+
coap "github.com/mainflux/coap-cli/coap"
1312

1413
gocoap "github.com/dustin/go-coap"
1514
)
@@ -61,7 +60,7 @@ func checkType(c, n, a, r *bool) (gocoap.COAPType, error) {
6160

6261
func printMsg(m *gocoap.Message) {
6362
if m != nil {
64-
log.Printf("Type: %d\nCode: %s\nMessageID: %d\nToken: %s\nPayload: %s\n",
63+
log.Printf("\nMESSAGE:\nType: %d\nCode: %s\nMessageID: %d\nToken: %s\nPayload: %s\n",
6564
m.Type, m.Code.String(), m.MessageID, m.Token, m.Payload)
6665
}
6766
}
@@ -120,8 +119,6 @@ func main() {
120119
})
121120
}
122121

123-
fmt.Println("sasa", []byte(*token))
124-
125122
res, err := client.Send(t, code, uint16(*id), []byte(*token), []byte(*d), opts)
126123
if err != nil {
127124
log.Fatal("ERROR: ", err)

0 commit comments

Comments
 (0)