A custom decoder microservice can return dataFragments
to the LwM2M agent in order to update the managed object, but this is only capable of updating the fragment specific to the LwM2M resource, e.g.
"dataFragments"
:[
{
"value"
:
"Hello World"
,
"key"
:
"/45678/0/1234"
}
]
will update the fragment:
"c8y_Lwm2m_45678!0": {
"1234": "Hello World"
}
It would be useful to be able to create or update the value of properties in any arbitrary fragment in the managed object, e.g.
"myCustomFragment": {
"myCustomProperty": "Hello World"
}
Hi Martin, we just discussed this topic internally. We added the idea to the backlog but we won't be able to start an implementation any time soon. However, given that the source ID of the device is available to the decoder microservice, you can already update the managed object through calling the inventory API.
Hi Martin,
thanks again for sharing! As with your other idea – we will discuss it next week and come back to you.