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())
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())