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

Constants for Matter wildcards (CON-1108) #889

Closed
jonsmirl opened this issue Mar 30, 2024 · 4 comments
Closed

Constants for Matter wildcards (CON-1108) #889

jonsmirl opened this issue Mar 30, 2024 · 4 comments

Comments

@jonsmirl
Copy link
Contributor

jonsmirl commented Mar 30, 2024

Please add constants for subscription wildcards -- any-endpoint, any-cluster, any-attrib, etc
in esp-matter-controller

@github-actions github-actions bot changed the title Constants for Matter wildcards Constants for Matter wildcards (CON-1108) Mar 30, 2024
@wqx6
Copy link
Contributor

wqx6 commented Apr 1, 2024

You could use 0xFFFF for any-endpoint, and 0xFFFFFFFF for any-cluster and any-attribute.

For example,
Read all the attribute in the cluster 0x6 of endpoint 1 on node 1:

matter esp controller read-attr 1 1 6 0xFFFFFFFF

Read all the attributes in all the clusters of endpoint 1 on node 1:

matter esp controller read-attr 1 1 0xFFFFFFFF 0xFFFFFFFF

Read all the attributes in all the clusters of all the endpoints on node 1:

matter esp controller read-attr 1 0xFFFF 0xFFFFFFFF 0xFFFFFFFF

@jonsmirl
Copy link
Contributor Author

jonsmirl commented Apr 1, 2024

I am using FFFFF... and it works. Please add some constants in the subscribe h file to make this more readable.
const wildcardAttib = 0xFFFFFFFFFFFFFF;

@wqx6
Copy link
Contributor

wqx6 commented Apr 2, 2024

I am using FFFFF... and it works. Please add some constants in the subscribe h file to make this more readable. const wildcardAttib = 0xFFFFFFFFFFFFFF;

Will add the comment in the header files to declare the wildcards.

@jonsmirl jonsmirl closed this as completed Apr 9, 2024
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

No branches or pull requests

2 participants