Skip to content

Commit

Permalink
Minor fixes from last merge (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 authored Apr 10, 2023
1 parent a00b171 commit 3b34f94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions packages/matter-node.js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,12 @@ The following parameters are available:
* -discriminator: the discriminator to use for pairing (default: 3840)
* -vendorid: the vendor ID as number to use for pairing (default: 65521 (0xFFF1))
* -productid: the product ID as number to use for pairing (default: 32768 (0x8000))
* -port: the port to listen on (default: 5540)
* -announceinterface: limit mdns announcements to the provided network interface, e.g. "en0" (default: all interfaces available)
* -port: the port to listen on for the device (default: 5540)
* -store: the storage location (directory) to use for storing the pairing information (default: device-node). Delete the directory or provide an alternative name to reset the device
* -on: the command to run when the device is turned on (see example above)
* -off: the command to run when the device is turned off (see example above)

The following parameters are available:
* -announceinterface: limit mdns announcements to the provided network interface, e.g. "en0" (default: all interfaces available)
* -port: the port to listen on fot the device (default: 5540)

**Experimental**

To run from the build files:
Expand Down
2 changes: 1 addition & 1 deletion packages/matter-node.js/src/Device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class Device {
])
.addEndpoint(0x01, DEVICE.ON_OFF_LIGHT, [onOffClusterServer])
);
await device.start()
await device.start();

logger.info("Listening");
if (!device.isCommissioned()) {
Expand Down

0 comments on commit 3b34f94

Please sign in to comment.