Skip to content

Commit

Permalink
Remove binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
dborovcanin committed Aug 20, 2019
1 parent b49aa6e commit 10cfeff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

# Test binary, build with `go test -c`
*.test

build/*
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
Binary file removed build/coap-client
Binary file not shown.
7 changes: 2 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ package main
import (
"errors"
"flag"
"fmt"
"log"
"net/url"
"os"
"strings"

coap "github.com/dusanb94/coap-cli/coap"
coap "github.com/mainflux/coap-cli/coap"

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

func printMsg(m *gocoap.Message) {
if m != nil {
log.Printf("Type: %d\nCode: %s\nMessageID: %d\nToken: %s\nPayload: %s\n",
log.Printf("\nMESSAGE:\nType: %d\nCode: %s\nMessageID: %d\nToken: %s\nPayload: %s\n",
m.Type, m.Code.String(), m.MessageID, m.Token, m.Payload)
}
}
Expand Down Expand Up @@ -120,8 +119,6 @@ func main() {
})
}

fmt.Println("sasa", []byte(*token))

res, err := client.Send(t, code, uint16(*id), []byte(*token), []byte(*d), opts)
if err != nil {
log.Fatal("ERROR: ", err)
Expand Down

0 comments on commit 10cfeff

Please sign in to comment.