-
Notifications
You must be signed in to change notification settings - Fork 407
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
Default version of core object is not handled correctly #1434
Comments
I also added comment in this discussion. |
I looked at the PoC and I do not like so much the idea about giving the "responsibility" to choose the default version in But before to search another way, I have one question : Do we want this behavior customizable or is it OK to have hardcoded behavior which strictly follow LWM2M specification ?
Yep, let's try to do it. |
About :
As we have doubt about how specification should be understood maybe safer to have a customizable way. 🤔 |
We don't have response from OMA yet. We do not know when we will receive an answer and what will be the this answer. Therefore I think that customization is the best idea. |
I created a PR about that see #1452, you can review / test if you want. |
Thank You very much ! Today I did some tests. They focused on the situation when we will need CustomLwM2mCoreObjectVersionRegistry instance (if, for example, the minimal version of the core object is needed 😉) I plan to test on Monday this scenario for RedisRegistrationStore (tomorrow we have bank holiday in PL). |
If you need to have different default version, it is also possible to override |
I finished today tests of CustomLwM2mCoreObjectVersionRegistry with RedisRegistrationStore. This feature is working correctly I'm able to define own, custom version for core objects. Thank you! |
Does it mean you think I should consider to integrate #1452 in |
I think, it's a very good idea. |
This now be integrated in @JaroslawLegierski thx for your help 🙏 |
Just for documentation purpose, I explain more precisely our choice at : OpenMobileAlliance/OMA_LwM2M_for_Developers#561 (comment) |
When client send supported object to the server, it can omit the version of this object.
In Leshan we consider that a missing version always means 1.0.
But this is is not what is described in LWM2M specification concerning core object.
See :
We currently target 1.1.x. (for Leshan v2.x)
I'm not so sure to understand correctly the v1.1.x but I feel both try to describe the same idea... version 1.2.x is much clearer :
Here is OMA question relative to this issue : OpenMobileAlliance/OMA_LwM2M_for_Developers#561
The text was updated successfully, but these errors were encountered: