From fb84bcee05dbb2dda0e4d7498fd02ed386a9c3f0 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期五, 26 八月 2022 17:57:17 +0800 Subject: [PATCH] 更新全视通dll --- 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 old mode 100644 new mode 100755 index 4badda8..e228756 --- 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