Skip to content

Commit e459ca5

Browse files
authored
transfer timeout to protocol object. (#1275)
transfer timeout to protocol object.
1 parent bfaafba commit e459ca5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pymodbus/client/serial.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ async def close(self): # pylint: disable=invalid-overridden-method
8888

8989
def _create_protocol(self):
9090
"""Create protocol."""
91-
protocol = ModbusClientProtocol(framer=self.params.framer, xframer=self.framer)
91+
protocol = ModbusClientProtocol(
92+
framer=self.params.framer, xframer=self.framer, timeout=self.params.timeout
93+
)
9294
protocol.factory = self
9395
return protocol
9496

0 commit comments

Comments
 (0)