SFELPHOTON-1337: SwissMX split/ cleanup/move repositories
This commit is contained in:
@@ -45,7 +45,7 @@ all = 0xff
|
||||
|
||||
class IlluminationControl(object):
|
||||
|
||||
def __init__(self,hostname: str="129.129.221.92",port: int=1003):
|
||||
def __init__(self,hostname: str="129.129.221.71",port: int=1003):
|
||||
if hostname is None: #simulated mode
|
||||
self._sim={'stat':0}
|
||||
_log.info('simulated mode:{}'.format(self._sim))
|
||||
@@ -59,7 +59,10 @@ class IlluminationControl(object):
|
||||
# connect to XT-PICO
|
||||
self._socket=s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.settimeout(1)
|
||||
s.connect((self._hostname, self._port))
|
||||
try:
|
||||
s.connect((self._hostname, self._port))
|
||||
except socket.timeout as e:
|
||||
_log.error(f"{e} can't connect to: {self._hostname}:{self._port}")
|
||||
|
||||
def disconnect(self):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user