-
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
First experimentation about Write Attributes support at cliend side. #1514
Conversation
Hi Simon, |
Thx for your feedback. I'm not sure I really get your concerns in details. The current code create several tasks but all tasks are schedule by a |
Do attributes persist after de-registration and re-registration or do you have to send them again? |
I'm not sure sure. Are you asking what is specified in LWM2M ? I find nothing about this is LWM2M specification, but you should have a look at it too and let me know if you find something. I guess this is up to implementers to decide?
You ask for pro/con about each solution, or something else ? Without thinking too much about it :
For a first implementation, I prefer "no persist".
I prefer to start with a minimal viable feature, code it properly, test it properly and make it works. If this is really needed, I don't know if this will be directly added in the code base OR if this is just about adapt the API to let user implement their needs. And also to be honest, I consider observe is already a very complex feature and we continue to add more complexity on it. |
What Attributes will be supported on Leshan Client? Why aren't they taken into account on Observe-Composite? |
I don't know. Potentially all attributes described in LWM2M v1.1.x.
I just mean that when I implemented this POC, I focus on "classic" observe not Observe-Composite use case. |
@sbernard31 I have question about |
This PR is mainly a POC to ensure it's possible to modify default observe behavior, I don't know if this is the right way to go but when I write this code I had in mind that So when a observe relation is established, |
@sbernard31 Where we should place data of Notification RW Storing When Disabled or Offline, in NotificationDataStore? And another question is about data structure in NotificationDataStore how should look like data structure here and should be place there TimeStamped data? |
I maybe missed something but "Storing When Disabled or Offline" is completely another feature ?
Data structure depends on needs.
I didn't think too much about that but why would we need to timestamped data ? (which use case ?) |
It's related with SenML support on ObserveComposite, which Jarek will be doing, so we would like to know it, to think how to do it consistently for these issues |
You're still talking about "TimeStamped data", right ? I didn't think too much of this. Generally I try to implement complex feature step by step. I don't really advice to try to solve all problems at the same time. |
8e7cd35
to
2efb924
Compare
@mgdlkundera do you move forward on this ? I will maybe work on this again. So let me know so we can "synchronize our work" |
I'm working on it, I'll commit my changes today. Sorry I didn't answear but I was out of office in December. |
No problem, and no urgency, I was/am finally busy on others tasks 🙂 |
Here is a link to my commit |
I will work on it again next week. I don't know if you plan to work on it too ? |
So maybe I'll switch to another task. Let me know when you finish work on this and then I'll back to integration tests, is that okay? |
My idea about integrations tests is that they could probably be written without the feature implementation and so in parallel of my work. But If you prefer to switch to another task this is possible too. 🙂 |
285cdcd
to
f523910
Compare
I rebase that PR on I plan to continue to work on this next week but maybe better to take a quick look to see if this go in the right direction. |
I push more work about write attribute support. I will write some tests to be able to test the code. |
c506e01
to
a4c7318
Compare
I looked at your changes and from my point of view it goes in right direction. |
Great. Thx.
I summarize the missing point to do at : #534 (comment) On my side, I plan to work on #1040, then integrate it in I think that the point : "we also need to implement this for java-coap transport layer." should be done last. I think I should do as this could be not so easy. (not even sure this is doable 😓) So if wanted you can try to finalize some missing point and add tests. (There is probably much more to tests) If I understood you correctly this feature was needed (by Orange), so this could also be a good idea to start to test it in the context you plan to use it ? |
2094a52
to
90d07eb
Compare
@mgdlkundera, @JaroslawLegierski, please let me know if you plan to test it ? 🙏 |
I can test it in the next week |
I tested it and it seems to be okay. |
Thx for testing. 🙏 I didn't find time to integrate this in |
Integrated in |
This is experimental work to try to implement #534.
I tried to find solution to manage how to skip or delay notification. This a maybe a bit twisted but until now I can not find a simple way... 😬
We can not really do that at
ObjectListener
ofLwM2mObjectEnabler
because :Note that :
java-coap