-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example server type assertion doesn't work, causes example to not work #47
Comments
Hello sir, |
@BALAMURUGANS15 It seems you don't have a proper Go development environment (not related to go-coap). Please follow instructions in https://golang.org/doc/code.html first. |
@svansteelandt Isn't there a way without formatting to a string and then converting the string to int? That feels too complex. |
cannot find package "github.com/dustin/go-coap" in any of:
/usr/local/go/src/github.com/dustin/go-coap (from $GOROOT)
/go/src/github.com/dustin/go-coap (from $GOPATH)
|
@BALAMURUGANS15 Try |
In example/obsserver/obsserver.go, line 42-45:
The type assertion gives a false for okay and a wrong value. This causes the if-clause to fail, and so the function periodicTransmitter is never called. I changed the code like this to get it to work:
with imports of
fmt
andstrconv
.The text was updated successfully, but these errors were encountered: