sample-apps-for-matter-android
sample-apps-for-matter-android copied to clipboard
How to get all fabrics from device
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.
Could you provide the kotlin code that you use to get all the fabrics. I'll replicate and investigate.
suspend fun getCommissionedFabrics(context: Context, nodeId: Long, callback: FabricsAttributeCallback){
ChipClusters.OperationalCredentialsCluster(getConnectedDevicePointer(context, nodeId), 0).readFabricsAttribute(callback)
}