| | |
| | | } |
| | | } else { |
| | | //搜索失败,启用远程连接 |
| | | MainPage.AddTip ("Gateway not found, enable remote connection."); |
| | | MainPage.AddTip ("Gateway cannot be searched locally."); |
| | | |
| | | } |
| | | } else { |
| | |
| | | if (UserConfig.Instance.CheckHomeGateways ()) { |
| | | if (!string.IsNullOrEmpty (UserConfig.Instance.CurrentRegion.HomeGateways [0].GatewayUniqueId)) { |
| | | // 5.1能远程,显示CloudUnlink状态,IsRemote设为true开始远程 |
| | | MainPage.AddTip ("Starting remote connection mode..."); |
| | | MainPage.AddTip ("Please wait, starting remote connection..."); |
| | | |
| | | Utlis.ShowAppLinkStatus (AppLinkStatus.CloudUnlink); |
| | | CommonPage.IsRemote = true; |
| | | SmartHome.MqttCommon.IsGatewayOnline = false; |
| | | //await SmartHome.MqttCommon.StartCloudMqtt (); |
| | | //重置参数状态 |
| | | SmartHome.MqttCommon.InitState (); |
| | | |
| | | } |
| | | } |
| | | } |