예제 #1
0
 def connect(self):
     """Reconnect in case the connection fails or is closed by the motor controller."""
     self._connection = Connection(self._host, self._port)
예제 #2
0
 def __init__(self, host, port=8001):
     super(HLe, self).__init__()
     self._connection = Connection(host, port)
     # Three groups, first 0-5, the rest 0-7
     self._ports = _make_ids(0, 6) + _make_ids(1, 8) + _make_ids(2, 8)