Hi,
It's not really clear in the spec, but as I understand it, It's
possible to make a Replace (PUT) of an object instance without all
the resources.
In this case, the missing resource will be erase (set to null). if
one of the resource which should be set to null is mandatory, client
should rise a METHOD_NOT_ALLOWED.
The same request with the Partial Update(POST) should change only
the specified resource.
For now, in leshan-standalone, we could just send Replace. But, we
should add a way to allow users to choose between Replace and
Partial Update (I open an issue
#58).
Simon
Le 14/01/2015 16:13, Kovatsch Matthias
a écrit :
Hi all
Working on the LWM2M
DevKit (https://github.com/mkovatsc/LWM2M-DevKit),
I noticed that the write operation in Leshan always performs
a replace via PUT, even if not all inputs were filled.
It does already transmit
only the filled values, so only the POST is missing for a
partial update.
Ciao
Matthias
_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev
|