| | |
| | | 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; |
| | | } |
| | | } |
| | |
| | | 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; |
| | |
| | | } |
| | | } |
| | | } catch (Exception ex) { |
| | | Console.WriteLine ("CheckLinkRemote : " + ex.ToString ()); |
| | | Utlis.WriteLine ("CheckLinkRemote : " + ex.ToString ()); |
| | | } finally { |
| | | isConnectiong = false; |
| | | Application.RunOnMainThread (() => { |