From ae95e3f4b9cbc1e7be2773068e28e2ac911c48c4 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 28 十月 2024 10:39:15 +0800
Subject: [PATCH] 默认服务器
---
HDL_ON/DAL/DriverLayer/Packet.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/HDL_ON/DAL/DriverLayer/Packet.cs b/HDL_ON/DAL/DriverLayer/Packet.cs
index dc75315..2cf06d7 100644
--- a/HDL_ON/DAL/DriverLayer/Packet.cs
+++ b/HDL_ON/DAL/DriverLayer/Packet.cs
@@ -344,9 +344,9 @@
break;
case Command.SetACModeACK:
case Command.ReadACModeACK:
- foreach (var function in FunctionList.List.Functions)
+ foreach (var function in FunctionList.List.GetAcList())
{
- if (function.bus == null || function.spk != SPK.AcStandard)
+ if (function.bus == null)
{
continue;
}
@@ -355,9 +355,12 @@
function.bus.DeviceID == deviceID &&
function.bus.LoopId == receiveBytes[0])
{
- Console.WriteLine(function.GetBusId());
function.SetAttrState(FunctionAttributeKey.TempType, receiveBytes[1].ToString());
function.SetAttrState(FunctionAttributeKey.RoomTemp, receiveBytes[2].ToString());
+ function.SetAttrState(FunctionAttributeKey.CoolTemperatrue, receiveBytes[3].ToString());
+ function.SetAttrState(FunctionAttributeKey.HeatTemperatrue, receiveBytes[4].ToString());
+ function.SetAttrState(FunctionAttributeKey.AutoTemperatrue, receiveBytes[5].ToString());
+ function.SetAttrState(FunctionAttributeKey.DehumiTemperatrue, receiveBytes[6].ToString());
function.SetAttrState(FunctionAttributeKey.OnOff, receiveBytes[8] == 1 ? "on" : "off");
acFunction.SetMode(receiveBytes[9], function);
acFunction.SetFan(receiveBytes[10], function);
--
Gitblit v1.8.0