plgd-dev / go-coap

Implementation of CoAP Server & Client in Go

Home Page:https://coap.technology

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comment on SetObserve method is confusing

tim-golioth opened this issue · comments

I can submit a PR for this, but I wanted to check first that I'm not reading the code incorrectly.

The comment for the SetObserve method reads:

// SetObserve sets ContentFormat option.
func (options Options) SetObserve(buf []byte, observe uint32) (Options, int, error) {
...

That should be SetObserve sets the Observe option. Correct?

Yes, must have been a copy & paste error on my part, it should be as you write.