-
Notifications
You must be signed in to change notification settings - Fork 375
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
Some question about time-related attribute of a client. #636
Comments
I don't know how it behave in wakaama. (1) I'm not sure I get you but if you mean that "if pmin/pmax is set at /5 level then those attributes are applied to all resources under /5" then it's correct to me. See for more details : http://www.openmobilealliance.org/release/LightweightM2M/V1_1_1-20190617-A/HTML-Version/OMA-TS-LightweightM2M_Core-V1_1_1-20190617-A.html#5-1-1-0-511-Attributes-Definitions-and-Rules |
Hi, it is so happy to get your response. : ) (1) I use the time to set PMIN/PMAX to object 5 then observe /5, but it doesn't One more question, is it possible to clear the time-related attribute of a client ? Thanks a lot! |
Still from a specification point of view (I don't know if this is implemented in wakaama), this is possible using an empty attribute with WRITE-ATRIBUTES request.
|
Just in case that was not clear, to remove pmin/pmax on /5, send : |
Thanks. It seems no way to do that on Wakaama now ? (with which operation ?) |
I don't know. We must wait from active committers to get more details about Wakaama behavior. But there are some hint (toClear) which show that maybe this is possible : |
Noted, thanks for your reply. |
@sbernard31 Maybe I have misunderstood but I am not sure about "(3) 100/200(PMIN/PMAX) should be used for /5." since pmin pmax are attached on resource level even thou they can be assigned on object level. In the example given by @Asher9977 all resources under /5 except /5/0/1, i.e., /5/0/3, /5/0/5 ... will have 100/200(PMIN/PMAX) attached, whereas /5/0/1 will have 10/20(PMIN/PMAX) attached. So wouldn't an observe on /5 have 10/20(PMIN/PMAX) since one resource will trigger the update more frequently? |
@tuve to be honest, I'm not sure I still agree with my "me from the past". At least I'm very much less confident. I try to summarize my confusion here.
(At least this is my understanding) Following this ☝️, I would say "yes" to 👇. because the assignation level is at object level but should be applied (attachment level) at resource level.
But reading this : OpenMobileAlliance/OMA_LwM2M_for_Developers#478 I'm not sure if you understand this like me but it seems that :
Eventually, I can vaguely understand the 1, but that seems to imply that attributed are never used for observation at Object or Object instance level. (because all have resource attachment level) The 2 seems to say that the pmin/pmax is applied to object instance level. (but the spec says that pmin/pmax are only attachable at resource level) So currently, I'm lost... 😅 |
I have the same understanding of observation, assignation, and attachment. Maybe I have misunderstood assignation and attachment. If the attachment is the same as assignation then the expected behavior would be as described in OpenMobileAlliance/OMA_LwM2M_for_Developers#478 but my understanding is that it is not. "So currently, I'm lost... 😅", me too |
@tuve there is some news at OpenMobileAlliance/OMA_LwM2M_for_Developers#478 (but still not clear to me for now), maybe you should watch the issue. (Maybe already done but) In a more general way, I think it could be a good idea that the whole Wakaama team (@rettichschnidi, @mlasch , @qleisan) watch those github repositories :
I think those are good place to discuss about the specification all together (Wakaama, Leshan, OMA and probably other devs) |
Hi, I'm new here and use the wakaama client and server for testing lwm2m.
Now I'm trying to add time-related attributes(PMIN/PMAX) to get notify on server.
Some problems I don't understand:
(1) If I set the time attribute to /5, it doesn't sending the notify of all the resources under the /5 object.
(2) If I set the time attribute to /5/0/1 then it is not possible to set time attribute to /5. (But it works in reversed way.
(3)If I set /5 to 100/200(PMIN/PMAX) and /5/0/1 to 10/20(PMIN/PMAX), what should be the correct behavior for observing
/5 ?
BTW, how do I set the timeout of writing command on server ?
Thanks in advance.
The text was updated successfully, but these errors were encountered: