This commit is contained in:
gongxh
2022-05-27 15:47:18 +08:00
parent 5194300402
commit 3be258e671
5 changed files with 84 additions and 66 deletions

View File

@@ -2,12 +2,12 @@
#if DEBUG
#define USE_LOCAL_TCP_DEBUG
//#define USE_LOCAL_TCP_DEBUG
#endif
//启用心跳检查
//#if RELEASE
//#define UseHeartbeat
#define UseHeartbeat
//#endif
using CleanMachine.Model;
using CleanMachine.Model.BAS;
@@ -251,7 +251,7 @@ namespace CleanMachineHMI
}
#if USE_LOCAL_TCP_DEBUG
port.Connect("10.0.0.95", 5002);
port.Connect("10.20.88.95", 5002);
this._isConn = true;
return true;
#else
@@ -1322,7 +1322,7 @@ namespace CleanMachineHMI
#if UseHeartbeat
if (DateTime.Now > HeartbeatTime.AddSeconds(5))//心跳超时
if (DateTime.Now > HeartbeatTime.AddSeconds(10))//心跳超时
{
IsConn = false;
//报警处理。