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

Read multiple attributes at once during discovery #464

Conversation

cdjackson
Copy link
Contributor

This replaces #400 and resolves #399 by using a multi-attribute read request in the ZigBeeNodePropertyDiscoverer. I did some smaller refactorings in that class as well, and used separate commits for those to ease the review.

Please note that this PR needs the new ZSS version before it can be merged (the new version that supports multi-attribute-read commands).

The basic idea is to do a multi-attribute read first, and then read each attribute separately from the ZSS layer as is already done before this PR. If the multi-attribute read succeeds, then the subsequent separate reading of each attribute will be obtained from the cache; if the multi-attribute read fails, then the subsequent separate readings serve as a fallback.

As a small additional change I added in this PR is adding a thing property for the manufacturer code obtained from the node descriptor (as I think that this is helpful in particular with the upcoming support for manufacturer-specific clusters).

Also-by: Henning Sudbrock
Signed-off-by: Chris Jackson [email protected]

@cdjackson cdjackson merged commit 047b0f3 into openhab:master Jul 28, 2019
@cdjackson cdjackson deleted the 399-read-multiple-attributes-at-once-during-discovery branch July 28, 2019 14:37
@cdjackson cdjackson added this to the 2.5 milestone Dec 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Speedup discovery by reading multiple attributes with single request
1 participant