moleike / node-lwm2m

OMA LwM2M protocol implementation for Node
GNU Affero General Public License v3.0
47 stars 16 forks source link

ACK is not sent after processing CON message #66

Open developez opened 4 years ago

developez commented 4 years ago

Hello i am dealing with a device using this implementation.

I observe properly the object "/19/0/0" to receive notifications about the device. The issue is that the device is waiting the ASK response, and that ASK never is sent by the server.

For example if I use the leshan (java) implementation, the server send the CON properly.

Any ideas?

moleike commented 4 years ago

IIRC by default all messages from the coap agent are confirmable.

Also, I haven't really used this library for a while, so expect some bit rot.

Regarding your question, if you want to send a Confirmable message, I would suggest explicitly adding a confirmable: true in https://github.com/moleike/node-lwm2m/blob/master/lib/server/index.js#L731

HIH

developez commented 4 years ago

I cannot obtain the CON from the server to the device adding "confirmable: true". My device is waiting after sending the ACK (notification by "observing")

developez commented 4 years ago

I have updated the awnser.