wakaama icon indicating copy to clipboard operation
wakaama copied to clipboard

lwm2m_remove_object(...) return removed object

Open parmi93 opened this issue 1 year ago • 4 comments

Small change to the lwm2m_remove_object(...) function so that it returns the pointer to the removed object.

parmi93 avatar Jun 14 '23 09:06 parmi93

Fixed the commit message according to the rules.

parmi93 avatar Jun 16 '23 10:06 parmi93

Removed the history of commits, in order to be able to resolve errors related to commit messages that did not respect the rules.

parmi93 avatar Jun 16 '23 14:06 parmi93

When exactly will this be useful? Would be great to have this information also in the commit message.

rettichschnidi avatar Oct 16 '23 06:10 rettichschnidi

This parameter is never used inside the library, but in my case it is useful. I developed an LwM2M client that allows the user to add and remove LwM2M resources on the fly.

Basically the user sends commands from a terminal to add, modify, and delete LwM2M resources, the parameter added through this PR is useful to me during the removal of a LwM2M resource, in this way once the resource has been removed from Wakamma lib I can perform the free of the pointer returned by 'lwm2m_remove_object(...)'

parmi93 avatar Oct 16 '23 16:10 parmi93