Skip to content

Commit 8dd5a01

Browse files
authored
Increase timeout from 0.2 to 5.0 seconds since it takes longer for gripper's response to be received. (#5)
1 parent 7cd25aa commit 8dd5a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robotiq_modbus_rtu/src/robotiq_modbus_rtu/comModbusRtu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self):
5353

5454
def connectToDevice(self, device):
5555
"""Connection to the client - the method takes the IP address (as a string, e.g. '192.168.1.11') as an argument."""
56-
self.client = ModbusSerialClient(method='rtu',port=device,stopbits=1, bytesize=8, baudrate=115200, timeout=0.2)
56+
self.client = ModbusSerialClient(method='rtu',port=device,stopbits=1, bytesize=8, baudrate=115200, timeout=5.0)
5757
if not self.client.connect():
5858
print "Unable to connect to %s" % device
5959
return False

0 commit comments

Comments
 (0)