Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLV format for single instance resource #145

Closed
sbernard31 opened this issue Apr 15, 2016 · 1 comment
Closed

TLV format for single instance resource #145

sbernard31 opened this issue Apr 15, 2016 · 1 comment

Comments

@sbernard31
Copy link
Contributor

The recent versions of the spec say now TLV can be used for single resources.

"The LWM2M Client MUST support the TLV data format for all
requests." (§6.3 Data Formats for Transferring Resource Information)

(There is a PR in Leshan which implements this)

@dnav
Copy link
Contributor

dnav commented Apr 21, 2016

Thanks for pointing this.

Currently for single resource request, the client can encode the data using TLV if the CoAP GET message content type is application/vnd.oma.lwm2m+tlv. If there is no content type specified, the client uses plain text by default.
On the server-side, the API does not allow to specify the content-type. I'll rework this part.

Regards,

@dnav dnav closed this as completed Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants