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

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.

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 ?

 

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.


Back to the top