image_font
This commit is contained in:
@ -41,10 +41,11 @@ class TCPClient:
|
||||
if (self.send_Status() and self.send_Command()):
|
||||
self.error_count = 0
|
||||
except Exception as e:
|
||||
log.log_message(logging.ERROR,f'COM_TCP: {str(e)}')
|
||||
self.error_count += 1
|
||||
if self.error_count> 5:
|
||||
print("Error: 机械臂控制程序中TCPClient is not connected")
|
||||
log.log_message(logging.ERROR,Constant.str_tcp_connect_no_reply)
|
||||
log.log_message(logging.ERROR,f'{Constant.str_tcp_connect_no_reply}:{str(e)}')
|
||||
try:
|
||||
self.CreatConnect()
|
||||
log.log_message(logging.INFO, Constant.str_tcp_reconnect)
|
||||
|
||||
Reference in New Issue
Block a user