From d9d08181a94d727a4fe5933ac9efd1ff5c8a7c5a Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期三, 16 七月 2025 13:49:13 +0800 Subject: [PATCH] 中间件修改内容: 1、当没农业综合站时即没相关配置项目内容为空时,启动时会产生bug; 2、整理优化代码。 --- pipIrr-platform/pipIrr-mw/pipIrr-mwTest-server/src/main/java/com/dy/testServer/ServerProperties.java | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-server/src/main/java/com/dy/testServer/ServerProperties.java b/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-server/src/main/java/com/dy/testServer/ServerProperties.java new file mode 100644 index 0000000..cb75a64 --- /dev/null +++ b/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-server/src/main/java/com/dy/testServer/ServerProperties.java @@ -0,0 +1,24 @@ +package com.dy.testServer; + +public class ServerProperties { + + //妯℃嫙瀹㈡埛鐨剅tuAddr璧峰鍙� + public static Long rtuAddrStart = 0L ; + //妯℃嫙瀹㈡埛鐨剅tuAddr鎴鍙� + public static Long rtuAddrEnd = 0L ; + //姣忎釜mwTest鍒嗛厤鐨剅tuAddr鏁� + public static Integer rtuAddrPerMwTest = 0 ; + //鏈嶅姟绔疷RL + public static String tcpServerIp = "" ; + //鏈嶅姟绔笂涓嬫枃 + public static Integer tcpServerPort = 60000 ; + //鍙戦�佹暟鎹棿闅� 绉� + public static Integer sendInterval = 0 ; + //姣忎竴杞鍙戦�佹暟鎹紝鍏朵腑鍖呮嫭蹇冭烦鍙戦�佹鏁� + public static Integer heartbeatTimes = 0 ; + //鍙戦�佹暟鎹鏁� + public static Integer sendTimes = 0 ; + //鍙戦�佸畬鏁版嵁鍚庯紝鏄惁鍏抽棴TCP杩炴帴锛�1鏄紝0鍚� + public static Integer sendOverThenCloseConnect = 0 ; + +} -- Gitblit v1.8.0