-
Notifications
You must be signed in to change notification settings - Fork 52
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
LWM2M object and resource definition questions #562
Comments
(I'm not an author of the specification, I just share my current understanding) I understand that your question is : "How to extend existing object ?" 1. Updating the registered ObjectIf you think the resource you want to add makes sense for everyone, maybe you should try to open a PR to update the object ? 2. Extending the object with private optional resourceAnother solution could be to add new optional resource. As you modify the object you could want to increment version number but if you do that you could face conflict with new official version of the object. So it could works in some case but not 100% future proof and maybe not really defined by the specification ?
(See : https://technical.openmobilealliance.org/OMNA/LwM2M/LwM2MRegistry.html) 3. Creating a new object with a different IDYou can create an extended version with a new ID. This is for sure allowed by the specification but you lost interoperability with device which are using "not" extended version of the object ... About range id you should probably use Company Reserved range ?
See :
By the past same kind of question was asked and I tried to get clarification without success (#429 (comment)) Anyway any clarification from OMA about all of this is welcomed 🙏 |
I have very little background with LWM2M so excuse me if the question lacks the proper terminology or detail. If a defined object exists, but an LWM2M client device supports resource(s) that are not defined for that particular object - how is that best handled?
For example: IPSO Object ID 3303 - Temperature
3303/0/5700 = sensor value
3303/0/5601 = min measured value
3303/0/5602 = max measured value
3303/0/??? = average measured value (over some period of time configured elsewhere)
Is it allowable to define new resources for an existing object? Or is it preferred to define a new object? Can the new resource or object be "private"? What is the preferred approach and what are optional approaches?
Thanks.
The text was updated successfully, but these errors were encountered: