| | |
| | | break; |
| | | } |
| | | } |
| | | //晾衣架(风干/烘干/消毒)设置的剩余多少时间触发 |
| | | else if (attData.AttributeId == 16386) |
| | | { |
| | | if (report.DeviceStatusReport.AttriBute.Count > 2) |
| | | { |
| | | //注意晾衣架回路上报都端点都是被替换为回路1,所以这里用上报都回路 |
| | | switch (report.DeviceEpoint) |
| | | { |
| | | //风干 |
| | | case 3: |
| | | ((Airer)locadevice).WindRemainTime = report.DeviceStatusReport.AttriBute[1].AttriButeData; |
| | | break; |
| | | //烘干 |
| | | case 4: |
| | | ((Airer)locadevice).DryRemainTime = report.DeviceStatusReport.AttriBute[1].AttriButeData; |
| | | break; |
| | | //消毒 |
| | | case 5: |
| | | ((Airer)locadevice).DisinfectRemainTime = report.DeviceStatusReport.AttriBute[1].AttriButeData; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |
| | | //晾衣架(风干/烘干/消毒)设置的默认时间 |
| | | else if (attData.AttributeId == 16385) |
| | | { |
| | | if (report.DeviceStatusReport.AttriBute.Count > 3) |
| | | { |
| | | //注意晾衣架回路上报都端点都是被替换为回路1,所以这里用上报都回路 |
| | | switch (report.DeviceEpoint) |
| | | { |
| | | //风干 |
| | | case 3: |
| | | ((Airer)locadevice).WindTime = report.DeviceStatusReport.AttriBute[2].AttriButeData; |
| | | break; |
| | | //烘干 |
| | | case 4: |
| | | ((Airer)locadevice).DryTime = report.DeviceStatusReport.AttriBute[2].AttriButeData; |
| | | break; |
| | | //消毒 |
| | | case 5: |
| | | ((Airer)locadevice).DisinfectTime = report.DeviceStatusReport.AttriBute[2].AttriButeData; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | // 注意,第一阶段时间设备不支持而暂停,没有处理剩余多少时间触发,直接上报回复一个属性ID的情况 |
| | | //if (attData.AttributeId == 16385) |
| | | //{ |
| | | // //注意晾衣架回路上报都端点都是被替换为回路1,所以这里用上报都回路 |
| | | // switch (report.DeviceEpoint) |
| | | // { |
| | | // //风干 |
| | | // case 3: |
| | | // ((Airer)locadevice).WindTime = report.DeviceStatusReport.AttriBute[0].AttriButeData; |
| | | // break; |
| | | // //烘干 |
| | | // case 4: |
| | | // ((Airer)locadevice).DryTime = report.DeviceStatusReport.AttriBute[0].AttriButeData; |
| | | // break; |
| | | // //消毒 |
| | | // case 5: |
| | | // ((Airer)locadevice).DisinfectTime = report.DeviceStatusReport.AttriBute[0].AttriButeData; |
| | | // break; |
| | | // } |
| | | //} |
| | | //晾衣架(风干/烘干/消毒)设置的剩余多少时间触发 |
| | | // 注意,第一阶段时间设备不支持而暂停,没有处理剩余多少时间触发,直接上报回复一个属性ID的情况 |
| | | //if (attData.AttributeId == 16386) |
| | | //{ |
| | | // //注意晾衣架回路上报都端点都是被替换为回路1,所以这里用上报都回路 |
| | | // switch (report.DeviceEpoint) |
| | | // { |
| | | // //风干 |
| | | // case 3: |
| | | // ((Airer)locadevice).WindRemainTime = report.DeviceStatusReport.AttriBute[0].AttriButeData; |
| | | // break; |
| | | // //烘干 |
| | | // case 4: |
| | | // ((Airer)locadevice).DryRemainTime = report.DeviceStatusReport.AttriBute[0].AttriButeData; |
| | | // break; |
| | | // //消毒 |
| | | // case 5: |
| | | // ((Airer)locadevice).DisinfectRemainTime = report.DeviceStatusReport.AttriBute[0].AttriButeData; |
| | | // break; |
| | | // } |
| | | //} |
| | | |
| | | //已经接收到状态 |
| | | locadevice.HadReadDeviceStatu = true; |
| | | } |