leshan icon indicating copy to clipboard operation
leshan copied to clipboard

Transactional API at client side

Open sbernard31 opened this issue 3 years ago • 4 comments

Bootstap operation and write composite(#959) need atomic modification of the LWM2M tree. So maybe we need a commit/rollback mechanism or at least an API which allow user to implement it.

sbernard31 avatar Jan 29 '21 16:01 sbernard31

@moznion, do you already feel you need something like this ?

sbernard31 avatar Jan 29 '21 16:01 sbernard31

Yes, absolutely! Sometimes I was feeling I wish I were able to manipulate the tree atomically.

moznion avatar Feb 04 '21 14:02 moznion

Do you already have a vague idea about what the API should looks like ?

sbernard31 avatar Feb 04 '21 15:02 sbernard31

This could maybe also used to support a more robust bootstrap session at client side. (see https://github.com/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/523)

sbernard31 avatar Jul 06 '21 15:07 sbernard31