ZigbeeApp/Shared/Phone/ZigBee/Common/Application.cs
@@ -334,6 +334,10 @@ { //本地Socket public static Socket busSocket; /// <summary> /// 计时器 /// </summary> private static int timeCount = 0; /// <summary> /// 启动Socket接收和发送功能 @@ -406,6 +410,13 @@ private static void CheckConnectiton() { if (busSocket == null) { return; } timeCount++; if (timeCount < 20) { //每10秒检测一次 return; } timeCount = 0; bool blockingState = busSocket.Blocking; try