wjc
2023-07-26 9508510f0b27da3278fa1161eb2ba3dd1e3e2030
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正在连接重置状态
@@ -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;
                }
            }