liurunyu
2024-07-22 5902545a506691139ecc1d1d9930cd357fd87b3c
pipIrr-platform/pipIrr-web/pipIrr-mwTest-rtu/src/main/java/com/dy/pipIrrMwTestRtu/tcpClient/TcpClUnit.java
@@ -108,13 +108,22 @@
        new Thread(new Runnable(){
            @Override
            public void run() {
                while(true){
                if(ServerProperties.onlyOneHeartBeat){
                    try {
                        UpHeartBeat.upCd02Data(ServerProperties.rtuAddr);
                        Thread.sleep(30000L);
                        //Thread.sleep(30000000L);
                    }catch (Exception e){
                        continue;
                    }
                }else{
                    while(true){
                        try {
                            UpHeartBeat.upCd02Data(ServerProperties.rtuAddr);
                            Thread.sleep(30000L);
                            //Thread.sleep(30000000L);
                        }catch (Exception e){
                            continue;
                        }
                    }
                }
            }