黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
ZigbeeApp/Shared/Phone/ZigBee/Device/DimmableLight.cs
old mode 100644 new mode 100755
@@ -12,6 +12,7 @@
        /// <summary>
        ///亮度,整形,取值范围:0-254表示0%-100% 
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public int Level = 0;
        /// <summary>
@@ -26,15 +27,14 @@
        ///设置设备亮度(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 {