| | |
| | | using System; |
| | | using MQTTnet.Client; |
| | | using System.Threading.Tasks; |
| | | using Shared; |
| | | using System.Text; |
| | | using System.Security.Cryptography; |
| | | using System.IO; |
| | | using HDL_ON.DAL; |
| | | using HDL_ON.UI; |
| | | using MQTTnet; |
| | | using HDL_ON.DAL.Server; |
| | | |
| | | namespace HDL_ON.DAL.Net |
| | | { |
| | |
| | | /// <summary> |
| | | /// 启动远程Mqtt |
| | | /// </summary> |
| | | public static async System.Threading.Tasks.Task StartCloudMqtt() |
| | | public static async Task StartCloudMqtt() |
| | | { |
| | | /* |
| | | try |
| | |
| | | MainPage.Log("Remote mqtt get Region MAC : " + UserConfig.Instance.CurrentRegion.RegionID); |
| | | var requestJson3 = Newtonsoft.Json.JsonConvert.SerializeObject(requestObj3); |
| | | var revertObj3 = HttpServerRequest.RequestHttps("GatewayByRegionList", requestJson3, true); |
| | | if (revertObj3.StateCode == "SUCCESS") |
| | | if (revertObj3.DB_ResidenceData.residenceData.residecenInfo |
| | | { |
| | | var responseDataObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<GatewayRes>>(revertObj3.ResponseData.ToString()); |
| | | var gatewayList = responseDataObj; |