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

#732: fix rt and ver attributes of Link format. #774

Merged
merged 1 commit into from
Jan 6, 2020
Merged

Conversation

sbernard31
Copy link
Contributor

@sbernard31 sbernard31 commented Nov 15, 2019

This PR aims to fix #732.

About ver attribute

The lwm2m specification v1.0.x seems to not be clear about the use of quote " for ver value :

  • §5.2.7.3 Bootstrap DISCOVER seems to not use quote : </55>;ver=1.9,
  • §6.2.3Object Definition and Object Version Usage seems to use quote : </44>;ver=“2.2”

The version v1.1.x both examples seem to not use quote and the format is clearly defined in §5.1.2. Attributes Classification : "ver" "=" 1*DIGIT "." 1*DIGIT, so quote MUST NOT be used in v1.1.x.

Regarding this, we choose to be able to read (server side) both quoted and unquoted value and we will write(client) it without using quote.

About rt="oma.lwm2m" attribute

There is nothing clear in the specification neither in v1.0.x nor v1.1.x, but all example use quote ("oma.lwm2m").

Following the rfc669 quote could be used or not for single rt value.

So we choose to be able to read (server side) both quoted and unquoted value and we will write(client) it with quote (like in lwm2m example).

@sbernard31 sbernard31 force-pushed the no_handshake_for_UQ_device branch from 0454e9b to ed9e8ad Compare January 6, 2020 15:19
@sbernard31 sbernard31 changed the base branch from no_handshake_for_UQ_device to master January 6, 2020 15:23
@sbernard31 sbernard31 merged commit 8120415 into master Jan 6, 2020
@sbernard31 sbernard31 deleted the link_format branch January 6, 2020 16:35
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.

Quote presence/absence in object versioning
2 participants