修改
This commit is contained in:
@@ -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;
|
||||
//报警处理。
|
||||
|
||||
Reference in New Issue
Block a user