-
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
Effect of attributes on different assignment levels #478
Comments
The simple answer to this question "Should any notifications actually be sent in this case?" is no. Reporting criteria can be attached to a resource when that reporting criteria is assigned to the object instance. Reporting criteria assigned to a resource cannot be attached to an object instance. Only those reporting criteria assigned to the observation level will be evaluated when determining whether to generate a notification report. |
For your follow-on conditions of setting the pmin and pmax on the object instance level, yes, a notification would be generated. That is completely independent of the attributes set at the resource level. |
The test case during which this issue has been discovered: LightweightM2M-1.0-int-1900 and LightweightM2M-1.1-int-1900 |
Can you send me an updated, corrected version of the test case description? |
We get a pretty much similar question on Wakaama project : eclipse-wakaama/wakaama#636. And so I fall on this old issue. I must confess that I'm confused by the answer.
When a Observation relation is established at object instance, if 1 of its resources changes then a notification is send.
With reporting criteria this could looks like :
(At least some have understood it like that : eclipse-wakaama/wakaama#636 (comment)) With your answer I understand the reporting criteria is only used when the attachment level matches observation level.
As all reporting criteria can only be attached to resource (See Table: 5.1.2.-2 class Attributes) That means that attribute will only be used for Observation established at Resource level ?
This time I'm confused because it seems that you are using the assignation level as it was an attachment level (the level where the criteria is applied) I probably totally missed something but could you clarify this ? |
Disclaimer: This is my personal view, not an OMA one as the matter was not yet discussed in an OMA WG meeting.
We have the same understanding.
Actually, there are two "types" of attributes:
You can use the second "type" of attributes for Observations at the Object or Object instance level. I think this is what you missed. In the original question, you have:
An Observation on In the follow-up question, you have:
An Observation on Regards, |
@dnav thx very much for the answer 🙏
I maybe missed that but I didn't find any version of the specification where
Unless there is a confusion between assignability and attachment ?
Do you understand it in a same way ? |
I'm so used to these tables that I totally forgot about this "attachment" column. Now I understand your confusion. And I'm no longer sure of the correct intent. Let's wait for the OMA WG clarification... |
Not directly link but maybe it could help to think about that In LWM2M-v1.1@core§6.4.4. Observe-Composite Operation, the description of Observe-Composite Operation says :
So, here this is more :
It looks like how @tuve understand Write Attribute with NONE composite observation. (See eclipse-wakaama/wakaama#636 (comment))
|
@hannestschofenig, I don't get why this is closed. Could you clarify this point ? or give a link to this clarification ? 🙏 |
@sbernard31 The latest (1.2) spec says in section 6.4.2 that:
This (but this is just my personal opinion, not approved by the working group at the moment) seems to strongly suggest that all the attributes below the level for which the Observe operation is issued shall be ignored. |
Some news about how we decide to implement write attributes behavior on classic observe (ObserveComposite not yet implemented) in Leshan 2.x (LWM2M v1.1.x) : We chose to implement :
Because :
Confusion about :
☝️ is solved by #539 (comment) |
This is an issue that generated disagreement during the 2019 TestFest in Korea. I believe it applies to both the 1.0 and 1.1 specifications.
Consider the following situation:
/19/0/0
), setting thepmin
andpmax
attributes./19/0
).Should any notifications actually be sent in this case? I.e., should the
pmax
attribute set on the Resource be respected when the observation is issued on the whole Object Instance? How would that change ifpmin
andpmax
attributes would also be set on the Object Instance level, as well as on the Resource level?The text was updated successfully, but these errors were encountered: