From fd1f19e8479c764fa28b0da3a2f9b34a3debe772 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 03 八月 2023 21:47:04 +0800 Subject: [PATCH] 2023年08月03日21:47:02 --- HDL-ON_Android/Application.cs | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs index d76c42e..105a0fe 100644 --- a/HDL-ON_Android/Application.cs +++ b/HDL-ON_Android/Application.cs @@ -125,7 +125,6 @@ multicast.Release(); //杩涘叆鍚庡彴 UserInfo.Current.unlockTime = DateTime.Now; - } } @@ -153,7 +152,7 @@ /// </summary> void BusSocketStop() { - //IsEnterBackground = true; + CloseTime = DateTime.Now; MainPage.IsEnterBackground = true; //杩涘叆鍚庡彴mqtt姝e湪杩炴帴閲嶇疆鐘舵�� @@ -167,15 +166,12 @@ /// </summary> void BusSocketStart() { - //IsEnterBackground = false; - if (CloseTime.AddSeconds(10) < DateTime.Now) { //鍚庡彴瓒呰繃10s灏辨柇寮�MQTT閲嶈繛 //if (HDL_ON.DriverLayer.Control.Ins.IsRemote) { HDL_ON.DAL.Mqtt.MqttClient.DisConnectRemote("closeTime", false); - HDL_ON.DriverLayer.Control.Ins.GatewayOnline_Cloud = HDL_ON.DriverLayer.Control.Ins.GatewayOnline_Local = false; } } -- Gitblit v1.8.0