Skip to content

Commit 4517d33

Browse files
cgernertjaniversen
andauthored
Forward retry_on_empty and retries by calling transaction (#1401)
* Forward retry_on_empty and retries to serial Co-authored-by: jan iversen <[email protected]>
1 parent 8af46d8 commit 4517d33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pymodbus/client/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ def __init__(
122122

123123
# Common variables.
124124
self.framer = self.params.framer(ClientDecoder(), self)
125-
self.transaction = DictTransactionManager(self, **kwargs)
125+
self.transaction = DictTransactionManager(
126+
self, retries=retries, retry_on_empty=retry_on_empty, **kwargs
127+
)
126128
self.delay_ms = self.params.reconnect_delay
127129
self.use_protocol = False
128130
self._connected = False

0 commit comments

Comments
 (0)