You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have detected that after send an empty "Update registration" packet to the LwM2M Server, the next observations packets are not processed (received and sent to the Orion Context Broker).
Next image illustrates how the observations are being ignored after the update registration (with empty payload):
This occurs because Lightweight-IOTAgent expects receive always the objects in the "Update registration" packet payload, but this is an optional case, which is usually used when new instances or objects are enabled/disabled/created after the registration process. The most common case is avoid this overload on each "Update registration" packet.
Currently, the behaviour when an "Update registration" packet is received is:
Subscriptions are removed.
Update device information.
Create again the subscriptions (based on the objects which appear in the "Update registration" packet payload).
Can be found in "lib/services/lwm2mHandlers/updateRegistration.js"
In order to avoid a process overload on each "Update registration" packet and the current problem, we purpose avoid to remove/create the subscriptions if the payload is empty.
Next image illustrate how the observations are now received after the update registration (with empty payload):
Tests are passed correctly.
Note: As future work, will be ideal check the existence the objects in the payload, because any other information (mode, lifetime, ...) can be also updated to the LwM2M Server through this way.
BR,
David
The text was updated successfully, but these errors were encountered:
In order to close this issue: @dcalvoalonso, you did some modifications on this software related with updates, do you think this issue have been solved?
Hello,
We have detected that after send an empty "Update registration" packet to the LwM2M Server, the next observations packets are not processed (received and sent to the Orion Context Broker).
Next image illustrates how the observations are being ignored after the update registration (with empty payload):
This occurs because Lightweight-IOTAgent expects receive always the objects in the "Update registration" packet payload, but this is an optional case, which is usually used when new instances or objects are enabled/disabled/created after the registration process. The most common case is avoid this overload on each "Update registration" packet.
Currently, the behaviour when an "Update registration" packet is received is:
Can be found in "lib/services/lwm2mHandlers/updateRegistration.js"
In order to avoid a process overload on each "Update registration" packet and the current problem, we purpose avoid to remove/create the subscriptions if the payload is empty.
Next image illustrate how the observations are now received after the update registration (with empty payload):
Tests are passed correctly.
Note: As future work, will be ideal check the existence the objects in the payload, because any other information (mode, lifetime, ...) can be also updated to the LwM2M Server through this way.
BR,
David
The text was updated successfully, but these errors were encountered: