-
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
Refactor BootstrapConfigStore to use a list of "request" #883
Conversation
2a71d79
to
524c631
Compare
1b8da2f
to
7db5373
Compare
First thought about this : Currently, to define what should be done during a bootstrap session, we need to create a This is a bean in which you are able to define this actions in this order :
This has several limitation like :
So replacing
So even if this is not so much satisfying to me, maybe we should keep both API... Working on this makes me think about other issues relative to Bootstrap server :
|
524c631
to
9dd235a
Compare
7db5373
to
d80524c
Compare
@dachaac do you have any opinions on this ? |
@sbernard31 kinda sounds into right direction and there might be a needs in certain installations to do custom object writing during bootstrapping -- at least it gives flexibility. What one need to make sure that all operations has been done successfully before bootstrap finish is issued. About the implementation you have here -- didn't have time to look at it yet -- I will rebase my work on the master now that unsigned integer is there and push it for you for a preview on how I tried to go in between the bootstrapping process and connecting to lwm2m server. With that done we can see if there is something that should be taken into account and I can hopefully give some more though on this issue then. |
@sbernard31 rebased my https://github.com/dachaac/leshan/commits/est-support branch. It still needs tidying up and has some traces of ugliness while hacking in ;) and is missing CoAP-EST server stuff as I am wondering currently how to split it and where and what kind of interfaces would be good -- but I would say that is not related to this issue as such. |
No problem I was mainly interested about your opinion on the idea itself and the new issues it could bring. (The code is currently no so clean it's more a kind of draft) |
d80524c
to
d19212a
Compare
I cleaned my code and limit the scope of this PR by letting the The new About API issues raised in #883 (comment) About |
I think this is in reviewable state now. |
Lots of changes were just change from on way to another "in cosmetic category". Actual change seems to be the FIFO that gets generated from BootstrapConfig which is probably OK but then again you had BootstrapConfiguration which was planned to replace it? I am not sure if BootstrapConfiguration is actually serializable in case it needs to be stored in database for persistence? Or should this just be runtime thing and it gets generated from other config/code? |
This is not serializable as java.io.Serializable meaning, but this is just a list of bean so we should be able to serialize this list of requests.
Both are possible.
My first idea was to replace BootstrapConfiguration by BootstrapConfig to bring more flexibility. |
Ok. I don't see problems with the changes in here. Just a comment on deprecated stuff -- Both LWM2M Server Demo and LWM2M Bootstrap Server Demo has a Web UI. They are built with different frameworks. LWM2M Server is utilizing AngularJS which is going for EOL: LWM2M Bootstrap server then again is utilizing Riot. On my other changes I just tried to adapt what ever was used but was a bit puzzled why the difference. Do you have some plans on this sector? |
As demos are not the priority, we don't invest as many time we would like.
This is just historical reasons + lack of time. |
see #907 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
d19212a
to
3001a33
Compare
After more thoughts, we decide that this was not the good approach. See #437 (comment) for more details. Consequences BootstrapConfig is no more deprecated.
After more thoughts, we decide that this was not the good approach. See #437 (comment) for more details. Consequences BootstrapConfig is no more deprecated.
This aims to implements : #437