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

How to get all fabrics from device #149

Open
armysman opened this issue Jul 11, 2023 · 3 comments
Open

How to get all fabrics from device #149

armysman opened this issue Jul 11, 2023 · 3 comments

Comments

@armysman
Copy link

CSA SDK V1.1, Use api OperationalCredentialsCluster->readFabricsAttribute just callback one fabric.
The iOS platform use Apple SDK api which has a params can filter callback, but java layer has not similar this.
is there any way can get all fabrics from devices.

@armysman
Copy link
Author

Detailed process

@pierredelisle
Copy link
Contributor

Could you provide the kotlin code that you use to get all the fabrics. I'll replicate and investigate.

@armysman
Copy link
Author

suspend fun getCommissionedFabrics(context: Context, nodeId: Long, callback: FabricsAttributeCallback){
    ChipClusters.OperationalCredentialsCluster(getConnectedDevicePointer(context, nodeId), 0).readFabricsAttribute(callback)
}

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

No branches or pull requests

2 participants