Skip to content

Commit

Permalink
feat: add response timeout setting support (#3325)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando authored Oct 6, 2023
1 parent e672c5c commit 74e5c39
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/ZwaveClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ export type ZwaveConfig = {
logLevel?: LogManager.LogLevel
commandsTimeout?: number
sendToSleepTimeout?: number
responseTimeout?: number
enableStatistics?: boolean
disclaimerVersion?: number
options?: ZWaveOptions
Expand Down Expand Up @@ -2117,6 +2118,7 @@ class ZwaveClient extends TypedEventEmitter<ZwaveClientEventCallbacks> {
timeouts: {
report: this.cfg.higherReportsTimeout ? 10000 : undefined,
sendToSleep: this.cfg.sendToSleepTimeout,
response: this.cfg.responseTimeout,
},
userAgent: {
[pkgjson.name]: pkgjson.version,
Expand Down
18 changes: 16 additions & 2 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,22 @@
"
label="Send to sleep timeout"
required
suffix="seconds"
hint="How long to wait without pending commands before sending a node back to sleep"
persistent-hint
suffix="ms"
hint="How long to wait without pending commands before sending a node back to sleep. Leave blank to use default (250ms)"
type="number"
></v-text-field>
</v-col>
<v-col cols="6">
<v-text-field
v-model.number="
newZwave.responseTimeout
"
label="Response timeout"
required
persistent-hint
suffix="ms"
hint="How long to wait for a controller response. Leave blank to use default (10000ms)"
type="number"
></v-text-field>
</v-col>
Expand Down

0 comments on commit 74e5c39

Please sign in to comment.