增加 心跳推送,空人说我太冷了,我太热了的时候 自动打开空调
This commit is contained in:
@@ -1626,6 +1626,13 @@ namespace WebSite.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
string tiaowen = request.header.name;
|
||||
if (tiaowen.Equals("IncrementTemperatureRequest") || tiaowen.Equals("IncrementTemperatureRequest"))
|
||||
{
|
||||
HostModalManager.SetDevice(host, hostModal, 1, 0);
|
||||
Thread.Sleep(50);
|
||||
}
|
||||
//对房间设备进行操作
|
||||
HostModalManager.SetDevice(host, hostModal, status, brightness, temperature, fanSpeed, mode, valve);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user