From 691dbe24f5724f153e07947c7b75bdfea5f0b6d5 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 24 九月 2024 16:15:15 +0800 Subject: [PATCH] 离线控制模式 --- HDL_ON/DAL/DriverLayer/Control.cs | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs index 39db401..baec645 100644 --- a/HDL_ON/DAL/DriverLayer/Control.cs +++ b/HDL_ON/DAL/DriverLayer/Control.cs @@ -276,8 +276,8 @@ public void SearchLoaclGateway() { //2021-01-15 : 浣忓畢娌℃湁缁戝畾缃戝叧鐨勬椂鍊欎笉鐢ㄦ悳绱紝骞朵笖涓嶈兘閾炬帴mqtt - if (DB_ResidenceData.Instance.HomeGateway == null || string.IsNullOrEmpty(DB_ResidenceData.Instance.HomeGateway.gatewayId) || - !UserInfo.Current.IsLogin) + if (DB_ResidenceData.Instance.HomeGateway == null || string.IsNullOrEmpty(DB_ResidenceData.Instance.HomeGateway.gatewayId)) + //|| !UserInfo.Current.IsLogin) { return; } @@ -444,7 +444,7 @@ //濡傛灉鏄帶鍒惰皟鍏夌殑寮�鏃讹紝浜害鍊间笉鑳戒负0 - if (commandDictionary.Count > 2) + if (commandDictionary.Count >= 2) { if (commandDictionary.ContainsKey(FunctionAttributeKey.OnOff) && commandDictionary.ContainsKey(FunctionAttributeKey.Brightness)) { @@ -978,10 +978,10 @@ /// <returns></returns> public void ConvertReceiveData(byte[] receiveBytes, string ip) { - if (!UserInfo.Current.IsLogin) - { - return; - } + //if (!UserInfo.Current.IsLogin) + //{ + // return; + //} var reString = Encoding.UTF8.GetString(receiveBytes); AnalysisReceiveData(reString, receiveBytes, ip); } @@ -1363,6 +1363,9 @@ AcstParentPage.UpdateAcstSubInfo(localFunction); WaterHeaterJinmaoPage.UpdateStatus(); break; + case SPK.InverterJinmao: + InverterJinmaoPage.UpdateStatus(localFunction); + break; case SPK.AirSwitch: AirSwitchPage.UpdataState(localFunction); if (localFunction.GetAttribute(FunctionAttributeKey.Power) != null)//濡傛灉鏄甫鐢甸噺鐨勭┖寮�涔熻鏇存柊鑳芥簮鐣岄潰 -- Gitblit v1.8.0