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
When value field is empty or value field is not present, the next error is raised in the Lightweight-IOTAgent:
time=2016-11-16T17:53:00.330Z | lvl=DEBUG | corr=n/a | trans=n/a | op=LWM2MLib.DeviceManagement | msg=Writting a new value [function (err, v) {
results[index] = v;
callback(err);
}] on resource /3303/0/5605 in device [1]
time=2016-11-16T17:55:25.859Z | lvl=FATAL | corr=n/a | trans=n/a | op=n/a | msg=An unexpected exception has been raised. Ignoring: TypeError: Invalid non-string/buffer chunk
And the query receives the next response:
{
"errorCode": {
"code": "404",
"details": "error forwarding update",
"reasonPhrase": "No context element found"
}
}
This is what happen in our devices in case of specify a dummy value:
And the query receives the next response:
{
"errorCode": {
"code": "404",
"reasonPhrase": "No context element found"
}
}
Not all the available LwM2M Clients are able to manage this extra value.
If there is no way to send an execute command without value, send a dummy value isn't a correct behaviour to execute some resources in LwM2M, most of the executable resources does not receive value, some example of executable resources without value are:
Reset device (3/0/4)
Factory reset (3/0/5)
Registration Update Trigger (1/0/8)
Reset Min/Max values for some sensor (some IPSO objects)
...
We expect to hear about other way to carry out this, but in the meantime we introduced a condition to allow execute commands without specify a value.
Hello,
We didn't find a way to execute a resource without provide an attribute value. Maybe someone knows how to carry out this?
We used a query such as the next one:
When value field is empty or value field is not present, the next error is raised in the Lightweight-IOTAgent:
And the query receives the next response:
This is what happen in our devices in case of specify a dummy value:
And the query receives the next response:
Not all the available LwM2M Clients are able to manage this extra value.
If there is no way to send an execute command without value, send a dummy value isn't a correct behaviour to execute some resources in LwM2M, most of the executable resources does not receive value, some example of executable resources without value are:
We expect to hear about other way to carry out this, but in the meantime we introduced a condition to allow execute commands without specify a value.
and the query result is ok:
Tests are passed correctly.
BR,
David
The text was updated successfully, but these errors were encountered: