| | |
| | | if(com == null){ |
| | | rt = this.connect() ;//连接通信中间件测试 |
| | | }else{ |
| | | if(com.equals("21")){ |
| | | if(com.equals("10")){ |
| | | rt = this.cd10() ; |
| | | }else if(com.equals("21")){ |
| | | rt = this.cd21() ; |
| | | }else if(com.equals("37")){ |
| | | rt = this.cd37() ; |
| | |
| | | return this.sendTest() ; |
| | | } |
| | | |
| | | private BaseResponse cd10(){ |
| | | Com10Vo comVo = new Com10Vo() ; |
| | | comVo.rtuAddr = "532328059995" ;//前6位是行政区划码,后6位是序列号最大是065535 |
| | | return this.sendCom2Mw(this.command(CodeV1_0_1.cd_10, comVo, null)) ; |
| | | } |
| | | |
| | | private BaseResponse cd21(){ |
| | | Com21Vo comVo = new Com21Vo() ; |
| | | comVo.ip = "8.140.180.59" ;//IP(例如 125.235.35.89) |