From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期二, 30 八月 2022 09:37:38 +0800 Subject: [PATCH] 合并了IOS的代码 --- 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