| | |
| | | {
|
| | | //获取远程mqtt链接信息
|
| | | var pra = new { attachClientId = RemoteClientId, homeType = "ZIGBEE" };
|
| | | var result = Shared.Phone.HdlHttpLogic.Current.RequestResponseFromZigbeeHttps("home-wisdom/mqtt/getRemoteInfo", RestSharp.Method.POST, pra);
|
| | | var result = Shared.Phone.HdlHttpLogic.Current.RequestResponseFromZigbeeHttps("home-wisdom/app/mqtt/getRemoteInfo", RestSharp.Method.POST, pra);
|
| | | if (result != null && result.Code == Shared.Phone.HttpMessageEnum.A成功)
|
| | | {
|
| | | var jobject = JObject.Parse(result.Data.ToString());
|
| | |
| | | return; |
| | | } |
| | | //获取云端网关信息 |
| | | var listGatewayInfo = Shared.Phone.HdlGatewayLogic.Current.GetGateWayListFromDataBase(); |
| | | var listGatewayInfo = Shared.Phone.HdlGatewayLogic.Current.GetGateWayListFromDataBase(Config.Instance.Home.Id); |
| | | if (listGatewayInfo == null) { return; } |
| | | |
| | | foreach (var info in listGatewayInfo.Values)
|