diff --git a/src/main/java/com/qgs/dc/s7/my/s7connector/enmuc/S7Client.java b/src/main/java/com/qgs/dc/s7/my/s7connector/enmuc/S7Client.java index 0619712..74d81ad 100644 --- a/src/main/java/com/qgs/dc/s7/my/s7connector/enmuc/S7Client.java +++ b/src/main/java/com/qgs/dc/s7/my/s7connector/enmuc/S7Client.java @@ -298,6 +298,11 @@ public enum S7Client { } + private void resetConnetctions(){ + this.connections = new ArrayList(); + connectionPool(); + } + private void connectionPool(){ for(int i=0;i a = new ArrayList<>(); -// a.add(Byte.valueOf("1")); -// a.add(Byte.valueOf("2")); -// read(a); -// System.out.println(a.get(0)); -// System.out.println(a.get(1)); -// } -// public static int read(byte[] ss){ -// ss[0] = 1; -// ss[1] = 1; -// return 0; -// } -// public static int read(List ss){ -// ss.set(0,Byte.valueOf("3")); -// ss.set(1,Byte.valueOf("4")); -// return 0; -// } - - /** * Send iso packet. * diff --git a/src/main/java/com/qgs/dc/s7/my/s7connector/type/DataTransportSize.java b/src/main/java/com/qgs/dc/s7/my/s7connector/type/DataTransportSize.java index 0decdb5..36a492d 100644 --- a/src/main/java/com/qgs/dc/s7/my/s7connector/type/DataTransportSize.java +++ b/src/main/java/com/qgs/dc/s7/my/s7connector/type/DataTransportSize.java @@ -70,7 +70,7 @@ public enum DataTransportSize { public static DataTransportSize enumForValue(short value) { if (!map.containsKey(value)) { - logger.error("No DataTransportSize for value {}", value); + logger.info("No DataTransportSize for value {}", value); } return map.get(value); }