zubairhamed / canopus

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

Issue connecting LWM2M client #74

Closed crenz closed 8 years ago

crenz commented 8 years ago

I wasn't able to run your LWM2M client example from the betwixt project - the client would connect sucessfully to a LWM2M server, but even the registration message did not get send out successfully.

I traced this down to an issue in canopus:

Actually, the LWM2M client should only ever need to listen to one socket. In this branch, I implemented a change where Send() reuses the already opened UDP socket, instead of opening another one: https://github.com/crenz/canopus/commit/6dc7ba1671f3e23c6af4ad05986b5a0a94a77dcc

Registration now suceeds, and requests are received successfully from Leshan and Wakaama LWM2M servers.

zubairhamed commented 8 years ago

Fixes the connection issue to LWM2M