Skip to content

Commit c4c6ff7

Browse files
committed
Increase the node_response-timeout to 45 seconds
based on an observed response-time of 30 seconds
1 parent 2359d9c commit c4c6ff7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugwise_usb/constants.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131

3232
# Max timeout in seconds
3333
STICK_TIME_OUT: Final = 11 # Stick responds with timeout messages within 10s.
34-
NODE_TIME_OUT: Final = 15 # In bigger networks a response from a node could take up a while, so lets use 15 seconds.
34+
# In bigger networks a response from a node could take up a while
35+
NODE_TIME_OUT: Final = 45
36+
# A delayed response being received after 30 secs so lets use 45 seconds.
37+
# @bouwew: NodeJoinAckResponse to a NodeAddRequest
38+
3539
MAX_RETRIES: Final = 3
3640
SUPPRESS_INITIALIZATION_WARNINGS: Final = 10 # Minutes to suppress (expected) communication warning messages after initialization
3741

0 commit comments

Comments
 (0)