Skip to content
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

Reflect changes to the server object into the core stack #529

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

CiaranWoodward
Copy link
Contributor

Updating the server object didn't have an impact after connecting to the server, so it was impossible to change the lifetime/binding after bootstrap. This modification catches writes to the lifetime object and immediately updates the internal representation of the server.

I'm not overly familiar with wakaama, so please check for any blatant errors! It seems a bit strange to have to extract the values from the server object using such a heavy-handed method, but it seems the stack is designed to keep the objects very detached from the wakaama internals. I was otherwise considering making the server object itself (object_server.c) modify the internal stack state (by directly accessing the server list), however the server object seems otherwise isolated from the exact instance it is attached to, so I tried to stay in the spirit of that.

Resolves #209
Related but unresolved: #355

Signed-off-by: Ciaran Woodward c.woodward@cascoda.com

@CiaranWoodward CiaranWoodward changed the title Reflect changes to the lifetime object into the core stack Reflect changes to the server object into the core stack Feb 1, 2021
core/objects.c Outdated Show resolved Hide resolved
core/objects.c Outdated Show resolved Hide resolved
Signed-off-by: Ciaran Woodward <c.woodward@cascoda.com>
@CiaranWoodward
Copy link
Contributor Author

@sbertin-telular Thanks for the review, I have resolved your comments & force pushed

@sbernard31 sbernard31 merged commit f8f65fa into eclipse-wakaama:master Feb 2, 2021
@sbernard31
Copy link
Contributor

@CiaranWoodward thanks for the contribution 🙏 !

@CiaranWoodward CiaranWoodward deleted the cia-lifetime branch February 2, 2021 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

An update of the lifetime parameter of a server object instance has no effect
3 participants