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 { } } } }