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

Mesh state update callbacks #456

Open
daretobeorjan opened this issue Oct 12, 2022 · 2 comments
Open

Mesh state update callbacks #456

daretobeorjan opened this issue Oct 12, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@daretobeorjan
Copy link
Contributor

Would it be possible to add some kind of delegate or other way to signal that the mesh state has changed? The Android SDK has a onNetworkUpdated method that passes the whole MeshNetwork whenever anything in it changes.

A possible usecase would be to trigger a backup of the mesh state when needed, or a way to trigger an UI updated to reload the list of nodes.

Or, have I missed a feature available somewhere that would enable us to do the above? If not, I'm willing to implement it, given some design guidelines of how we actually want to build such a feature.

@philips77
Copy link
Member

Is it only about getting a callback when a mesh network configuration (nodes, keys, groups, scenes, ...) changes, not on each message, right?

@philips77 philips77 added the enhancement New feature or request label Oct 12, 2022
@daretobeorjan
Copy link
Contributor Author

At the moment, for us it would be some of the more basic properties that are exported in the mesh configuration database blob. Ie addition/deletion of objects (nodes, keys, groups, like you mentioned) and some "sub-properties" of those objects (publication/subscription for node models, names, etc).

If going all in, I would say a callback on anything that is exported, at which point we would also have things like the exclusion list, heartbeat, etc. But that's beyond our usecase, so would only be if the solution needs to be "complete".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants