Skip to content

Commit b6d90f2

Browse files
authored
Allow more time for the default_set (zwave reset) command to complete (#1058)
The timeout was set at 10s which could cause timeouts. It is now set to 60s. [SRH-1792]
1 parent a24e25d commit b6d90f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/grizzly/network.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ defmodule Grizzly.Network do
9999
seq_number = SeqNumber.get_and_inc()
100100
node_id = node_id_from_opts(opts)
101101

102-
case Grizzly.send_command(node_id, :default_set, [seq_number: seq_number], timeout: 10_000) do
102+
# Changed timeout from 10s because doing a Z-Wave reset can take a few seconds longer than 10s.
103+
# 60s is more than enough time.
104+
case Grizzly.send_command(node_id, :default_set, [seq_number: seq_number], timeout: 60_000) do
103105
{:ok, %Report{type: :command, status: :complete}} = response ->
104106
_ = Associations.delete_all(Keyword.get(opts, :associations_server, Grizzly.Associations))
105107
response

0 commit comments

Comments
 (0)