Skip to content

Commit

Permalink
docs: update migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Oct 24, 2024
1 parent 2fa0104 commit a7fa6eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/getting-started/migrating/v14.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ public static from(raw: CCRaw, ctx: CCParsingContext): BinarySwitchCCSet {

> [!NOTE]: Applications calling these methods can simply pass the driver instance.
## Moved Serial API message implementations to `@zwave-js/serial` package

All serial API message implementations have been moved to the `@zwave-js/serial` package. In addition to the main entry point, they are also available via `@zwave-js/serial/serialapi`.

## Other notable changes

These are the only ones I found to break dependent projects.
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The only downside is that you won't necessarily receive any responses that would
Here's an example how to turn off the LED on a **Aeotec Gen 5 stick**.

```ts
const turnLEDOff = new Message(driver, {
const turnLEDOff = new Message({
type: MessageType.Request,
functionType: 0xf2,
payload: Buffer.from("5101000501", "hex"),
Expand All @@ -28,7 +28,7 @@ await driver.sendMessage(turnLEDOff, {
This example sends an `Anti-theft Get` command (which is currently unsupported) to node 2:

```ts
const cc = new CommandClass(driver, {
const cc = new CommandClass({
nodeId: 2,
ccId: CommandClasses["Anti-theft"], // or 0x5d
ccCommand: 0x02,
Expand Down

0 comments on commit a7fa6eb

Please sign in to comment.