From 5efaaab958a0f4a91ad9d76b5d5fea0ea3fc3f41 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 01 十二月 2020 16:24:19 +0800 Subject: [PATCH] 2020-12-01 1.请求路径修改。 2.切换住宅或者查询住宅列表增加获取网关列表。 3.房间增加默认图片选择、比例调整为16:9。4.优化图片裁剪。 --- HDL_ON/DAL/Mqtt/MqttClient.cs | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs index c06c840..dba1acf 100644 --- a/HDL_ON/DAL/Mqtt/MqttClient.cs +++ b/HDL_ON/DAL/Mqtt/MqttClient.cs @@ -11,6 +11,7 @@ using System.Security.Cryptography; using System.IO; using HDL_ON.DriverLayer; +using HDL_ON.Entity; namespace HDL_ON.DAL.Mqtt { @@ -646,6 +647,18 @@ { MqttInfoConfig.Current.mMqttInfo = mqttInfoRequestResult_Obj; await MQTTConnectAsync(); + //1.鍒ゆ柇鏄惁缁戝畾浜嗙綉鍏筹紝鑾峰彇缃戝叧杩滅▼杩炴帴鐨勫姞瀵咾EY + if (DB_ResidenceData.residenceData.CheckWhetherGatewayIsBound()) + { + //2.鎵惧嚭鏄惁瀛樺湪鍖归厤褰撳墠浣忓畢鐨刴ac锛屽瓨鍦ㄥ啀杩涜杩滅▼銆� + MqttInfoConfig.Current.HomeGatewayInfo = DB_ResidenceData.residenceData.HomeGateway; + //3.寮�濮嬭繛鎺� + await MQTTConnectAsync(); + } + else + { + Utlis.WriteLine("============>杩樻病缁戝畾缃戝叧"); + } } } -- Gitblit v1.8.0