zubairhamed / canopus

CoAP Client/Server implementing RFC 7252 for the Go Language
Apache License 2.0
154 stars 41 forks source link

problem With NewRequest: too many argument #87

Open smnd90 opened 7 years ago

smnd90 commented 7 years ago

In your code you use function NewRequest with 3 argument but its definition is with 2 arguments: func NewRequest(messageType uint8, messageMethod CoapCode) Request It's correct? For example: req := canopus.NewRequest(canopus.MessageConfirmable, canopus.Get, canopus.GenerateMessageID())

smnd90 commented 7 years ago

I change this function with NewRequestWithMessageId and it works. It is correct?