| New file | 
|  |  |  | 
|---|
|  |  |  | package com.dy.testClient; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public class ServerProperties { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //RTU开始地址 | 
|---|
|  |  |  | public static Long rtuAddrStart = 0L ; | 
|---|
|  |  |  | //RTU截止地址 | 
|---|
|  |  |  | public static Long rtuAddrEnd = 0L ; | 
|---|
|  |  |  | //服务端IP | 
|---|
|  |  |  | public static String tcpServerIp = "" ; | 
|---|
|  |  |  | //服务端上下文 | 
|---|
|  |  |  | public static Integer tcpServerPort = 0 ; | 
|---|
|  |  |  | //发送数据数据间隔 | 
|---|
|  |  |  | public static Integer sendInterval = 0 ;//秒 | 
|---|
|  |  |  | //每一轮次发送数据,其中包括心跳数据的次数 | 
|---|
|  |  |  | public static Integer heartbeatTimes = 3 ; | 
|---|
|  |  |  | //发送数据次数 | 
|---|
|  |  |  | public static Integer sendTimes = 0 ; | 
|---|
|  |  |  | //发送完数据后,是否关闭TCP连接,1是,0否 | 
|---|
|  |  |  | public static Integer sendOverThenCloseConnect = 0 ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static boolean startTcpConnectWork = false ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //mwTestServer | 
|---|
|  |  |  | public static boolean startRtuReportWork = false ; | 
|---|
|  |  |  | } | 
|---|