old mode 100644
new mode 100755
| | |
| | | /// <summary> |
| | | ///亮度,整形,取值范围:0-254表示0%-100% |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public int Level = 0; |
| | | |
| | | /// <summary> |
| | |
| | | ///设置设备亮度(Level) |
| | | ///<para>value:亮度值取值范围:0-254</para> |
| | | ///<para>command 0:Move to Level Command</para> |
| | | ///<para>command 4:Move to Level Command(with 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 { |