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

ListenAndServe complains about wrong arguments

MariusMagiera opened this issue · comments

I implemented a coap listener and it worked.

r := mux.NewRouter() [...] log.Fatal(coap.ListenAndServe("udp", portNumber, r))

Now for some reason it throws an error and it seems that there are different arguments expected (see error message below). Does anyone knows something about a change regarding to this?

not enough arguments in call to coap.ListenAndServe have (string, string, *mux.Router) want (string, string, coap.Handler, coap.ListenerErrorFunc)