| | |
| | | } |
| | | |
| | | public String commandId ;//发送命令的ID,如果是命令结果,并且匹配了下发命令,此值不为空 |
| | | |
| | | |
| | | public String rtuResultSendWebUrl ;//rtu返回命令结果 发向目的地web URL |
| | | public String protocolName ;//协议名称 |
| | | public String rtuAddr ;//IMEI号 |
| | | public String meterNo ;//水表号 |
| | | public Integer productId ;//电信平台产品ID,当不在电信平台运行时,为null |
| | | public String deviceId ;//电信平台设备ID,当不在电信平台运行时,为null |
| | | public String rtuAddr ;//Rtu地址 |
| | | public String upCode ;//上行数据中的功能码 |
| | | public String upHex ;//上行数据十六进制形式 |
| | | public byte[] upBuffer ;//上行数据字节数组 |
| | |
| | | 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); |
| | | } |
| | | } |
| | | |
| | | } |