| | |
| | | } |
| | | |
| | | public String commandId ;//发送命令的ID,如果是命令结果,并且匹配了下发命令,此值不为空 |
| | | |
| | | |
| | | public String rtuResultSendWebUrl ;//rtu返回命令结果 发向目的地web URL |
| | | public String protocolName ;//协议名称 |
| | | public String rtuAddr ;//Rtu地址 |
| | | public String upCode ;//上行数据中的功能码 |
| | |
| | | ProtocolUnit.getInstance().adapter.getSingleActionFromRtu(this.protocolName).doAction(this); |
| | | } |
| | | |
| | | public void setCommandId(String commandId){ |
| | | public void matchedCommand(String commandId, String rtuResultSendWebUrl){ |
| | | this.commandId = commandId ; |
| | | if(this.data != null){ |
| | | this.data.setCommandId(commandId); |
| | | } |
| | | this.rtuResultSendWebUrl = rtuResultSendWebUrl ; |
| | | if(this.data != null){ |
| | | this.data.setRtuResultSendWebUrl(rtuResultSendWebUrl); |
| | | } |
| | | } |
| | | |
| | | } |