Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wakaama-dev] Write multiple resources with TLV format



2014-08-29 14:30 GMT+02:00 Navarro, David <david.navarro@xxxxxxxxx>:

Hi Manu,

 

The client behavior on this is not intentional. It is a side effect of the TLV parsing in the payload. I need to study the correct behavior.

 

On the specification interpretation, my understanding is that your either provides an object instance to do a Replace or an array of ressource to do a Partial Update.

I think that the Replace/Partial Update depends on the CoAP method (POST or PUT) as defined in section 8.2.4 (http://technicaldev01.oma-tech.org/IoT/LWM2M10/doc/TS/index.html#!Documents/devicemanagementserviceenablementinterface1.htm).

On a Replace the object must erase the instance and refill it using only the provided data.

On a Partial Update, the object writes each provided resource leaving other resources untouched.

This will be the object responsibility to have the coreect behavior.

 

Do you have the same understanding ?

Actually, my understanding is that the payload format depends on the resource ID parameter of the write request. 
If I try to summarize my specification interpretation of section 5.3.3:
- if a resourceID is provided, the payload must be a single TLV object with type 'Resource with value' or 'Multiple Resource' (in which case the object contains multiple 'Resource Instance' TLVs)
- if the resourceID is not provided, the payload must be a TLV object with type 'Object Instance' (containing multiple Resource TLV).
In the end, the payload should always contain a single top-level TLV object.

Do you think this is correct ?

 

David Navarro

 

From: wakaama-dev-bounces@xxxxxxxxxxx [mailto:wakaama-dev-bounces@xxxxxxxxxxx] On Behalf Of Manu Sangoi
Sent: Friday, 29 August, 2014 11:40
To: wakaama-dev@xxxxxxxxxxx
Subject: [wakaama-dev] Write multiple resources with TLV format

 

Hello, 

 

I'm trying to send a write request to a wakaama client in order to change the values of several resources (using TLV format) from an object instance.

 

My concern is about the content of the request payload.

The client accepts the request if the payload contains an array of TLV objects (with type 'Resource with Value' for instance).

 

But, as far as I understand the spec about the write operation (5.3.3), the payload should be a single top level TLV object (with type 'Object Instance'), containing the Resource TLVs.

 

Am I misunderstanding something in the specification ?

 

Thanks for your help.

 

Manu

---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


_______________________________________________
wakaama-dev mailing list
wakaama-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/wakaama-dev


Back to the top