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

Hack solution for aggregator recursive parts list #6

Merged

Conversation

Caldwell1988
Copy link
Collaborator

When trying to bridge composed devices (devices which functionality is spread hierarchically over multiple endpoints) the aggregator needs to know all endpoints including all children of all aggregated devices.

Normally we should use the SetFlatCompositionForEndpoint for this purpose, yet this doesn't work as the endpoint needs to be deactivated before setting the flat composition (recursive look up of children endpoints).

Therefore we tell the system that all endpoints are flat composition.

This will become a problem when we have composed devices of multiple depths levels. In that case we need to set thos devices to tree composition or reset tree composition to the default and find a solution how to set flat composition for the aggregator device type

When trying to bridge composed devices (devices which functionality is
spread hierarchically over multiple endpoints) the aggregator needs to
know all endpoints including all children of all aggregated devices.

Normally we should use the `SetFlatCompositionForEndpoint` for this
purpose, yet this doesn't work as the endpoint needs to be
deactivated before setting the flat composition (recursive look up of
children endpoints).

Therefore we tell the system that all endpoints are flat composition.

This will become a problem when we have composed devices of multiple
depths levels. In that case we need to set thos devices to tree
composition or reset tree composition to the default and find a solution
how to set flat composition for the aggregator device type
@Caldwell1988 Caldwell1988 requested a review from dbahrdt January 25, 2024 19:09
@Caldwell1988 Caldwell1988 self-assigned this Jan 25, 2024
@Caldwell1988 Caldwell1988 merged commit da2e0f4 into eltako/release/1.2 Jan 29, 2024
@Caldwell1988 Caldwell1988 deleted the feature/hack-for-aggreagtor-parts-list branch January 29, 2024 17:24
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.

2 participants