From f71e74b5f0d2716fbf05da016cdaa18d64e09f80 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 31 十二月 2020 17:01:18 +0800 Subject: [PATCH] 又换完成最新门锁。空气质量传感器完成数据和基本配置功能。开发图表和自动化的同事可下载此代码 --- ZigbeeApp/Shared/Phone/ZigBee/Device/Panel.cs | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/Panel.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/Panel.cs old mode 100644 new mode 100755 index baeb820..aed8f7a --- a/ZigbeeApp/Shared/Phone/ZigBee/Device/Panel.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/Panel.cs @@ -17,6 +17,7 @@ /// <summary> /// 澶氬姛鑳介潰鏉夸腑琚粦瀹氱殑鐩爣 /// </summary> + [Newtonsoft.Json.JsonIgnore] public System.Collections.Generic.Dictionary<string, List<BindListAllInfo>> bindTargetsFromMutilfunctionPanelList = new System.Collections.Generic.Dictionary<string, List<BindListAllInfo>>(); /// <summary> /// 鎸夐敭妯″紡锛堢鏈夊姛鑳斤級 @@ -1181,7 +1182,7 @@ try { - var passData = CorrectTemperatureData(correctValue, direction, type); + var passData = CorrectTemperatureData(correctValue,direction, type); var jObject = new JObject { { "DeviceAddr", DeviceAddr }, { "Epoint", 200 }, { "Cluster_ID", 64513 }, { "Command", 0 } }; var data = new JObject { { "PassData", passData } }; jObject.Add("Data", data); @@ -1215,7 +1216,7 @@ /// </summary> /// <param name="correctValue">鏍℃娓╁害鍊�</param> /// <returns></returns> - string CorrectTemperatureData(double correctValue, int direction = 0, int type = 0) + string CorrectTemperatureData(double correctValue,int direction=0, int type = 0) { string data = ""; string dataLength = "09"; @@ -1321,12 +1322,12 @@ /// </summary> public ErrorResponData errorResponData; /// <summary> - ///鎸夐敭寮�鐘舵�侊紙鎸囩ず锛変寒搴�(杩欎釜鏄偣鍑诲悗鐨勫��) + ///鎸夐敭寮�鐘舵�侊紙鎸囩ず锛変寒搴�(杩欎釜鏄偣鍑诲悗鐨勫��,鎴栬�� 1-6骞叉帴鐐圭殑鑳屽厜鐏�) /// </summary> public int panelDirectionsLevel = -1; /// <summary> - /// 鎸夐敭鍏崇姸鎬侊紙鑳屽厜锛変寒搴�(杩欎釜鏄偣鍑诲墠鐨勫��) + /// 鎸夐敭鍏崇姸鎬侊紙鑳屽厜锛変寒搴�(杩欎釜鏄偣鍑诲墠鐨勫��,鎴栬�� 绗竷骞叉帴鐐圭殑鑳屽厜鐏�) /// </summary> public int panelBacklightLevel = -1; } @@ -1537,7 +1538,7 @@ /// 浼犳劅鍣ㄤ娇鑳� ///false-disable true-enable /// </summary> - public bool enable; + public bool enable= false; /// <summary> ///浼犳劅鍣ㄨ窛绂� -- Gitblit v1.8.0