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

Add support of "ct=" attribute at Server side #1008

Merged
merged 2 commits into from
Jun 3, 2021
Merged

Conversation

sbernard31
Copy link
Contributor

@sbernard31 sbernard31 commented May 5, 2021

Add support to ct= attribute at Server side.
"ct" attribute allow to let know to the server content formats supported by the client.

If the LwM2M Client supports optional data formats, it MAY inform the LwM2M Server by including the content type in the root path link using the ct= link attribute. (note that the content type value 110 is the value assigned in the CoAP Content-Format Registry for the SenML JSON format used by LwM2M).

</>;ct=110, </1/0>,</1/1>,</2/0>,</2/1>,</2/2>,</2/3>,</2/4>,</3/0>,</4/0>,</5>

(source core§6.2.1)

Since LWM2M 1.1, there is no more one mandatory content format to rule them all (TLV) and so this kind of negotiation is more needed.
(see OpenMobileAlliance/OMA_LwM2M_for_Developers#514)

@sbernard31 sbernard31 force-pushed the refactoring_registration branch from 7848fb8 to dad83de Compare June 3, 2021 09:33
Copy link
Contributor

@msangoi msangoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sbernard31 sbernard31 changed the base branch from refactoring_registration to master June 3, 2021 13:41
@sbernard31 sbernard31 merged commit 86cbd35 into master Jun 3, 2021
@sbernard31 sbernard31 deleted the ct_for_server branch June 30, 2021 08:36
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

Successfully merging this pull request may close these issues.

2 participants