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/DimmableLight.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/DimmableLight.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/DimmableLight.cs index 4badda8..e228756 100755 --- a/ZigbeeApp/Shared/Phone/ZigBee/Device/DimmableLight.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/DimmableLight.cs @@ -12,6 +12,7 @@ /// <summary> ///浜害锛屾暣褰紝鍙栧�艰寖鍥达細0-254琛ㄧず0%-100% /// </summary> + [Newtonsoft.Json.JsonIgnore] public int Level = 0; /// <summary> @@ -26,15 +27,14 @@ ///璁剧疆璁惧浜害锛圠evel锛� ///<para>value:浜害鍊煎彇鍊艰寖鍥达細0-254</para> ///<para>command 0锛歁ove to Level Command</para> - ///<para>command 4锛歁ove to Level Command锛坵ith On/ Off锛�</para> /// </summary> - public void SetLevel(int value, int command = 4) + public void SetLevel(int value) { var jObject = new JObject { { "DeviceAddr", DeviceAddr}, { "Epoint", DeviceEpoint}, { "Cluster_ID", 8 }, - { "Command", command}, + { "Command", 4}, { "SendMode", 2 } }; var data = new JObject { -- Gitblit v1.8.0