Skip to content

Commissioning Devices in Matter.js: Order of Operations? #1022

Answered by Apollon77
joehecn asked this question in Q&A
Discussion options

You must be logged in to vote

Please do not mix Device and Controller because these are different topics!

So for each device you create one ServerNode instance using the ServerNode.create method, then you add your needed endpoints to it (Root endpoint is already included in ServerNode) and then you run() it or use bringOnline().
The "Network" is included in the Environment initialized in the background and the node is automatically added there. you can also startup multiple ServerNodes by using different ports.

The Controller is encapsulated by the CommissionigController class which gets the used (or default) environment added as startup parameters. This is because the Device API is already renewed, the controller one…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by joehecn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1021 on July 15, 2024 20:22.