黄学彪
2019-12-17 5986f63b75bd81c6cef262c670e9251c038cbf5d
ZigbeeApp/Shared/Phone/Device/DeviceLogic/ReadDeviceAttributeLogic.cs
@@ -35,8 +35,13 @@
        /// <param name="device">设备</param>
        public void SendACStatuComand(CommonDevice device)
        {
            SendThermostatStatuComand(device);
            SendFanStatuComand(device);
            new System.Threading.Thread(() =>
            {
                SendFanStatuComand(device);
                System.Threading.Thread.Sleep(300);
                SendThermostatStatuComand(device);
            })
            { IsBackground = true }.Start();
        }
        /// <summary>
@@ -82,7 +87,6 @@
               {
                 { "AttriButeId", (int)AttriButeId.CleanStatu}
               }
            };
            var data = new Newtonsoft.Json.Linq.JObject { { "AttriBute", attriBute } };
            jObject.Add("Data", data);
@@ -115,7 +119,7 @@
            };
            var data = new Newtonsoft.Json.Linq.JObject { { "AttriBute", attriBute } };
            jObject.Add("Data", data);
            device.Gateway?.Send(("GetDeviceStatus"), jObject.ToString());
            device.Gateway?.Send("GetDeviceStatus", jObject.ToString());
        }
        #endregion
@@ -165,8 +169,13 @@
        /// <param name="device"></param>
        public void SendDimmableLightStatuComand(CommonDevice device)
        {
            SendSwitchStatuComand(device);
            SendLevelStatuComand(device);
            new System.Threading.Thread(() =>
            {
                SendSwitchStatuComand(device);
                System.Threading.Thread.Sleep(300);
                SendLevelStatuComand(device);
            })
            { IsBackground = true }.Start();
        }
        /// <summary>
@@ -218,7 +227,6 @@
            jObject.Add("Data", data);
            device.Gateway?.Send(("GetDeviceStatus"), jObject.ToString());
        }
        #endregion
    }