-
Notifications
You must be signed in to change notification settings - Fork 408
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
ObserveComposite for timestamped data support on server side #1552
ObserveComposite for timestamped data support on server side #1552
Conversation
Just to be sure, is it still a draft or should I review it ? (Rereading myself, I realize that this could be taken the wrong way 😬 , this wasn't aggressive it was just to now if I should take time to review it now OR if this is too soon 😅 ) |
No Problem 😉 I created it initially as a PoC, however I think it's a good idea to turn it into PR and explain some not clear topics in dedicated issues such as #1554 or during review. |
aa5031c
to
45ec941
Compare
@JaroslawLegierski I added some commit about tests. Second test fails and following #1089 (comment), I think it should pass. Do you agree ? |
As I understand the "In case of the same path conflict the most recent one is taken. Null timestamp is considered as most recent one." Passing because I don't see |
Not really. As explain at #1089 (comment) // valid
t1 => {
"/1/0/1" => LwM2mResource
"/3/0/15" => LwM2mResource
},
// valid
t2 => {
"/1/0/1" => LwM2mResource
"/3/0/15" => null // case where resource has no value, a single notif answer maybe with NOT_FOUND
},
// invalid : 3/0/15 is missing
t3 => {
"/1/0/1" => LwM2mResource
},
// invalid : 3/0/1 should not be here
t4 => {
"/1/0/1" => LwM2mResource
"/3/0/1" => LwM2mResource
"/3/0/15" => LwM2mResource
}
Nope, the issue is not at encoder level because you can not encode null value in SenML. The issue is at decoder level, you change the Decoder API to add list of path which is good. But you don't use it. |
Ok - I understand thanks for the clarification. Do you have in mind something like this ? |
Yep something like this. (but maybe better to add a new constructor with |
OK - I added new constructor in this commit. |
a4c064f
to
9f74749
Compare
(I rebased this on |
I pushed some more modification. I think this is in reviewable stable. (Last thing missing, I plan to change |
I tested this today and it looks OK. I think that it can be integrated into the master. |
Ok I will re-read the code one more time. Re-organize commit then integrate it in |
…esponse for observe composite
e2a3a4b
to
666c014
Compare
I found some cosmetic little issue but also some more real issue. I think it's good to integrate |
This is now integrated in |
ObserveComposite for timestamped data suport on server side - described in issue #1089.