Skip to content

Commit

Permalink
chore: rework controller info message
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Jan 17, 2024
1 parent fe446eb commit 79b1a6a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions packages/zwave-js/src/lib/controller/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,7 @@ export class ZWaveController
maxPayloadSizeLR = await this.getMaxPayloadSizeLongRange();
}

// FIXME: refactor this message
this.driver.controllerLog.print(
`received additional controller information:
Z-Wave API version: ${this._zwaveApiVersion.version} (${this._zwaveApiVersion.kind})${
Expand All @@ -1345,15 +1346,23 @@ export class ZWaveController
controller role: ${this._isPrimary ? "primary" : "secondary"}
controller is the SIS: ${this._isSIS}
controller supports timers: ${this._supportsTimers}
zwave nodes in the network: ${initData.nodeIds.join(", ")}
max payload size: ${maxPayloadSize}
LR nodes in the network: ${lrNodeIds.join(", ")}
max. payload size:
Z-Wave: ${maxPayloadSize}
Long Range: ${maxPayloadSizeLR ?? "(unknown)"}
nodes in the network:
Z-Wave: ${
initData.nodeIds.length > 0
? initData.nodeIds.join(", ")
: "(none)"
}
Long Range: ${
lrNodeIds.length > 0 ? lrNodeIds.join(", ") : "(none)"
}
LR channel: ${
lrChannel
? getEnumMemberName(LongRangeChannel, lrChannel)
: "<not set>"
}
LR max payload size: ${maxPayloadSizeLR}`,
}`,
);

// Index the value DB for optimal performance
Expand Down

0 comments on commit 79b1a6a

Please sign in to comment.