From 6fe1c5ebeb8312edc479a4576f05d80c5051a6c6 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 19 七月 2023 19:47:00 +0800
Subject: [PATCH] 炫彩功能优化

---
 HDL_ON/DAL/Mqtt/MqttClient.cs |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs
index a403e13..0358a57 100644
--- a/HDL_ON/DAL/Mqtt/MqttClient.cs
+++ b/HDL_ON/DAL/Mqtt/MqttClient.cs
@@ -12,6 +12,7 @@
 using HDL_ON.Entity;
 using HDL_ON.UI;
 using HDL_ON.DAL.Server;
+using HDL_ON;
 
 namespace HDL_ON.DAL.Mqtt
 {
@@ -160,7 +161,7 @@
             StartCloudMqtt();
         }
 
-        static bool isSubscribeSuccess;
+        public static bool isSubscribeSuccess;
         /// <summary>
         /// 璁㈤槄涓婚
         /// </summary>
@@ -262,8 +263,8 @@
                     #endregion
 
 
-                    Utlis.WriteLine("寮�濮嬭闃咃紒");
-                    var result = await RemoteMqttClient.SubscribeAsync(new MqttTopicFilter[] {
+                    Utlis.WriteLine("寮�濮嬭闃咃紒"); 
+                     var result = await RemoteMqttClient.SubscribeAsync(new MqttTopicFilter[] {
                         pirStatus,pirStudy,
                         appDeviceRefresh,appHomeRefresh,appRoomRefresh,residenceChange,
                         topicFilterPush2, topicAlinkStatus ,mqttkeyChange,
@@ -1187,7 +1188,7 @@
             }
             catch (Exception ex)
             {
-                Console.WriteLine(ex.Message);
+                MainPage.Log(ex.Message);
             }
             return reData;
         }

--
Gitblit v1.8.0