wei
2020-12-25 780e34b3f06f9709150183711ffddd19f97e070d
HDL_ON/DAL/Mqtt/MqttClient.cs
@@ -160,6 +160,10 @@
        }
        static bool isSubscribeSuccess;
        /// <summary>
        /// 订阅主题
        /// </summary>
        /// <returns></returns>
        static async Task SubscribeTopics()
        {
            if (remoteIsConnected && !isSubscribeSuccess)
@@ -659,8 +663,18 @@
            if (Control.Ins.IsRemote)
            {
                if (!Control.Ins.GatewayOnline)
                {
                    try
                    {
                        if (DB_ResidenceData.Instance.HomeGateway != null)
                        {
                            DB_ResidenceData.Instance.HomeGateway.gatewayStatus = true;
                        }
                    Control.Ins.GatewayOnline = true;
            }
                    catch { }
                }
            }
        }