黄学彪
2020-09-01 dee21bf452a8979d0515d13e534fbb69ed9715dd
ZigbeeApp/Shared/Phone/ZigBee/Device/DimmableLight.cs
@@ -27,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 {