JLChen
2020-04-16 9ca2281d589fbd4b35177d1846974f17d12095ae
Crabtree/SmartHome/UI/SimpleControl/EquipmentPublicClass.cs
@@ -27,7 +27,7 @@
            if (mFlagDateTime.AddSeconds (20).Ticks <= System.DateTime.Now.Ticks) {
                mFlagDateTime = DateTime.Now;
                if (isConnectiong) {
                    Console.WriteLine ("20s》isConnectiong true ");
                    Utlis.WriteLine ("20s》isConnectiong true ");
                    isConnectiong = false;
                }
            }
@@ -153,6 +153,8 @@
                                if (UserConfig.Instance.CheckHomeGateways ()) {
                                    if (!string.IsNullOrEmpty (UserConfig.Instance.CurrentRegion.HomeGateways [0].GatewayUniqueId)) {
                                        // 5.1能远程,显示CloudUnlink状态,IsRemote设为true开始远程
                                        MainPage.AddTip ("Starting remote connection mode...");
                                        Utlis.ShowAppLinkStatus (AppLinkStatus.CloudUnlink);
                                        CommonPage.IsRemote = true;
                                        SmartHome.MqttCommon.IsGatewayOnline = false;
@@ -178,7 +180,7 @@
                        }
                    }
                } catch (Exception ex) {
                    Console.WriteLine ("CheckLinkRemote : " + ex.ToString ());
                    Utlis.WriteLine ("CheckLinkRemote : " + ex.ToString ());
                } finally {
                    isConnectiong = false;
                    Application.RunOnMainThread (() => {