ListenAndServe complains about wrong arguments
MariusMagiera opened this issue · comments
MariusMagiera commented
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)