From fe98a98ae0af367fe9366c9322361d61dce943c4 Mon Sep 17 00:00:00 2001 From: wangs <546428999@qq.com> Date: Fri, 25 Aug 2023 13:47:41 +0800 Subject: [PATCH] =?UTF-8?q?rev=20opc=E8=AF=BB=E5=86=99=E5=85=B1=E7=94=A8?= =?UTF-8?q?=E4=B8=80=E4=B8=AAserver?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/nl/acs/opc/DeviceOpcProtocolRunable.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java b/wcs/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java index 27145a66..12353250 100644 --- a/wcs/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java +++ b/wcs/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java @@ -96,10 +96,11 @@ public class DeviceOpcProtocolRunable implements Runnable, DataCallback, ServerC server.disconnect(); log.trace("清理server..."); } - this.server = OpcServerUtl.getServerWithOutException(this.OpcServer.getOpc_host(), this.OpcServer.getCls_id(), this.OpcServer.getUser(), this.OpcServer.getPassword(), this.OpcServer.getDomain()); - this.server.addStateListener(this); - group = this.server.addGroup(); -// group =opcServerService.getServer(this.getOpcGroupID()); +// this.server = OpcServerUtl.getServerWithOutException(this.OpcServer.getOpc_host(), this.OpcServer.getCls_id(), this.OpcServer.getUser(), this.OpcServer.getPassword(), this.OpcServer.getDomain()); +// this.server.addStateListener(this); +// group = this.server.addGroup(); + group =opcServerService.getServer(this.getOpcServer().getOpc_code()); + List itemsString = new ArrayList(); Iterator var3 = this.protocols.iterator();