Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wakaama-dev] COAP payload header flag 'C8' to indicate that a resource is of type string

John,

 

The C8 doesn’t mean what you think it does. In fact, there is nothing in the TLV format to indicate what type the resource is.

 

In the Wakaama source, have a look at the lwm2m_decode_TLV function in tlv.c.

 

The C8 means it is a resource with an 8-bit long ID and an 8-bit long length. C4 is a resource with an 8-bit long ID and a length of 4.

 

Regards,

Scott

 

From: wakaama-dev-bounces@xxxxxxxxxxx [mailto:wakaama-dev-bounces@xxxxxxxxxxx] On Behalf Of Brady, John
Sent: Wednesday, September 27, 2017 11:59 AM
To: leshan developer discussions <leshan-dev@xxxxxxxxxxx>; Wakaama developer discussions <wakaama-dev@xxxxxxxxxxx>
Subject: [wakaama-dev] COAP payload header flag 'C8' to indicate that a resource is of type string

 

Hi,

 

I have a Wakaama client talking to leshan server.

 

I am looking at the COAP messages on the Leshan UI. I have attached a screenshot.

 

My question is – where (in either the client or server) is the ‘C8’ header flag set to indicate that the resource is of type string?

 

For example when I read the manufacturer resource in the device object there is a ‘C8’ header flag at the beginning of the COAP payload when you view the messages on the Leshan UI.

 

My issue is that, I have created a new resource of type string in the object device but it is returning asci characters on the leshan UI and there is a ‘C4’ header flag at the beginning of the COAP payload.

 

Thank you

John

 

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263

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