| | |
| | | new System.Threading.Thread(() => |
| | | { |
| | | SendFanStatuComand(device); |
| | | System.Console.WriteLine("发送时间:" + DateTime.Now.ToString("o")); |
| | | System.Threading.Thread.Sleep(500); |
| | | System.Threading.Thread.Sleep(300); |
| | | SendThermostatStatuComand(device); |
| | | System.Console.WriteLine("接收时间:" + DateTime.Now.ToString("o")); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | |
| | | {
|
| | | { "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 |
| | |
| | | jObject.Add("Data", data);
|
| | | device.Gateway?.Send(("GetDeviceStatus"), jObject.ToString());
|
| | | } |
| | | |
| | | |
| | | #endregion |
| | | } |