Skip to Main Content
Cumulocity IoT Feedback Portal
Status Future consideration
Categories LWM2M
Created by Guest
Created on May 10, 2023

Allow custom LwM2M decoder microservice to create/update arbitrary inventory fragments

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"

}

  • Attach files
  • Admin
    Aaron Raab
    Reply
    |
    Jul 13, 2023

    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.

  • Admin
    Aaron Raab
    Reply
    |
    May 31, 2023

    Hi Martin,

    thanks again for sharing! As with your other idea – we will discuss it next week and come back to you.