| | |
| | | /// <param name="device">设备</param> |
| | | public void SendACStatuComand(CommonDevice device) |
| | | { |
| | | SendThermostatStatuComand(device); |
| | | SendFanStatuComand(device); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | SendFanStatuComand(device); |
| | | System.Console.WriteLine("发送时间:" + DateTime.Now.ToString("o")); |
| | | System.Threading.Thread.Sleep(500); |
| | | SendThermostatStatuComand(device); |
| | | System.Console.WriteLine("接收时间:" + DateTime.Now.ToString("o")); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | /// <summary>
|
| | |
| | | /// <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>
|