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

Should set storage policy to attributeAccessInterface for attributes of struct type for Matter #391

Open
bzbarsky-apple opened this issue Jan 25, 2022 · 0 comments
Assignees
Labels
matter Important to Matter SDK

Comments

@bzbarsky-apple
Copy link
Contributor

Currently attribute loading has this piece in prepareCluster in zcl-loader-silabs.js:

      let storagePolicy = dbEnum.storagePolicy.any
      if (context.listsUseAttributeAccessInterface && attribute.$.entryType) {
        storagePolicy = dbEnum.storagePolicy.attributeAccessInterface

We should do the same thing for cases when the type of attribute is a struct type, if the appropriate boolean is set in context (to restrict it to Matter).

The problem is that at this stage we don't know which types are structs yet, right?

@tecimovic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
matter Important to Matter SDK
Projects
None yet
Development

No branches or pull requests

2 participants