Replies: 2 comments 9 replies
-
Usage example:
|
Beta Was this translation helpful? Give feedback.
4 replies
-
Are there any updates on this? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This goal of this thread is to discuss the APIs that the MatterController library will provide.
APIs can be grouped into 3 categories:
Current proposal:
Initial setup
There are two different scenarios, either MatterController is the root of the fabric or another controller is the root and he needs to be commissioned.
Commission by another fabric controller:
MatterController.awaitCommissioning(commissioningOptions): Promise
Root of the fabric:
MatterController.createRootFabric(): RootFabric
MatterController.discoverCommissionableDevices(): Promise<DeviceAddress[]>
MatterController.commissionDevice(fabric: RootFabric, deviceAddress, commissioningOptions): Promise
Note: with those APIs, the controller can be commissioned multiple times, create multiple fabrics and be hybrid...
Device discovery
MatterController.discoverDevices(fabric: Fabric): Promise<MatterDevice[]>
MatterController,getDevice(nodeId): Promise
Device operation
MatterDevice.getCluster(ClusterDef): ClusterClient
ClusterClient: autogenerated using some Typescript magic
Beta Was this translation helpful? Give feedback.
All reactions