| | |
| | | /// <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>
|
| | |
| | | {
|
| | | { "AttriButeId", (int)AttriButeId.CleanStatu}
|
| | | }
|
| | |
|
| | | };
|
| | | var data = new Newtonsoft.Json.Linq.JObject { { "AttriBute", attriBute } };
|
| | | jObject.Add("Data", data);
|
| | |
| | | };
|
| | | 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 |
| | |
| | | /// <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>
|
| | |
| | | jObject.Add("Data", data);
|
| | | device.Gateway?.Send(("GetDeviceStatus"), jObject.ToString());
|
| | | } |
| | | |
| | | |
| | | #endregion |
| | | } |