Handlers can be synchronous or asynchronous (returning a Promise).
The args parameter contains the command arguments passed by Matter.js (optional).
The context parameter provides information about which part triggered the handler (for composed devices).
Matter command handler function type
Handlers can be synchronous or asynchronous (returning a Promise). The args parameter contains the command arguments passed by Matter.js (optional). The context parameter provides information about which part triggered the handler (for composed devices).