| | |
| | | case FunctionAttributeKey.FanSpeed: |
| | | tempAc.trait_fan.curValue = attr.value; |
| | | break; |
| | | case FunctionAttributeKey.Temp: |
| | | case FunctionAttributeKey.SetTemp: |
| | | tempAc.trait_temp.curValue = attr.value; |
| | | switch (tempAc.curModeIndex) |
| | | { |
| | |
| | | case FunctionAttributeKey.OnOff: |
| | | tempFh.trait_on_off.curValue = attr.value; |
| | | break; |
| | | case FunctionAttributeKey.Temp: |
| | | case FunctionAttributeKey.SetTemp: |
| | | tempFh.trait_temp.curValue = attr.value; |
| | | break; |
| | | case FunctionAttributeKey.Mode: |
| | |
| | | |
| | | try |
| | | { |
| | | MainPage.Log("发送数据:" + SendFlag); |
| | | //MainPage.Log("发送数据:" + SendFlag); |
| | | UdpSocket._BusSocket.AsyncBeginSend(Packet); |
| | | Packet.HaveSendCount--; |
| | | |
| | |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 本地udp控制A协议网关 |
| | | /// 发送udp A协议数据 |
| | | /// </summary> |
| | | public void SendLocalHdlLinkData(byte[] sendBytes) |
| | | { |
| | |
| | | thread.IsBackground = true; |
| | | thread.Start(Packet); |
| | | //wait();不需要等待 |
| | | MainPage.Log($"发送Hdl-Link数据,IP:{Control.Ins.reportIp}:8585"); |
| | | //MainPage.Log($"发送Hdl-Link数据,IP:{Control.Ins.reportIp}:8585"); |
| | | } |
| | | |
| | | |