From e90209beae6a4e822cecb18e6889f8bda23f630e Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 14 十二月 2020 11:16:06 +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
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