node-lwm2m icon indicating copy to clipboard operation
node-lwm2m copied to clipboard

ACK is not sent after processing CON message

Open developez opened this issue 5 years ago • 3 comments

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?

developez avatar Jun 19 '20 13:06 developez

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

moleike avatar Jun 19 '20 14:06 moleike

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 avatar Jun 22 '20 12:06 developez

I have updated the awnser.

developez avatar Jun 25 '20 11:06 developez