From 96b0a6a3a7526b3025a044067f6ae2426f8e995f Mon Sep 17 00:00:00 2001 From: Luis Camero Date: Wed, 15 Jan 2025 16:27:04 -0500 Subject: [PATCH] Increase timeout to 0.5 --- robotiq_modbus_rtu/src/robotiq_modbus_rtu/comModbusRtu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robotiq_modbus_rtu/src/robotiq_modbus_rtu/comModbusRtu.py b/robotiq_modbus_rtu/src/robotiq_modbus_rtu/comModbusRtu.py index 67c25dd6..d1d2fbce 100644 --- a/robotiq_modbus_rtu/src/robotiq_modbus_rtu/comModbusRtu.py +++ b/robotiq_modbus_rtu/src/robotiq_modbus_rtu/comModbusRtu.py @@ -55,7 +55,7 @@ def __init__(self): def connectToDevice(self, device): """Connection to the client - the method takes the IP address (as a string, e.g. '192.168.1.11') as an argument.""" - self.client = ModbusSerialClient(method='rtu',port=device,stopbits=1, bytesize=8, baudrate=115200, timeout=0.2) + self.client = ModbusSerialClient(method='rtu',port=device,stopbits=1, bytesize=8, baudrate=115200, timeout=0.5) if not self.client.connect(): print("Unable to connect to {}".format(device)) return False