Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -83,6 +83,7 @@ public class DeviceOpcProtocolRunable implements Runnable, DataCallback, ServerC
|
|||||||
|
|
||||||
|
|
||||||
private void runOld() {
|
private void runOld() {
|
||||||
|
OpcServerService opcServerService = SpringContextHolder.getBean(OpcServerService .class);
|
||||||
while (true) {
|
while (true) {
|
||||||
start:
|
start:
|
||||||
try {
|
try {
|
||||||
@@ -95,10 +96,10 @@ public class DeviceOpcProtocolRunable implements Runnable, DataCallback, ServerC
|
|||||||
server.disconnect();
|
server.disconnect();
|
||||||
log.trace("清理server...");
|
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 = OpcServerUtl.getServerWithOutException(this.OpcServer.getOpc_host(), this.OpcServer.getCls_id(), this.OpcServer.getUser(), this.OpcServer.getPassword(), this.OpcServer.getDomain());
|
||||||
this.server.addStateListener(this);
|
this.server.addStateListener(this);
|
||||||
group = this.server.addGroup();
|
group = this.server.addGroup();
|
||||||
|
// group =opcServerService.getServer(this.getOpcGroupID());
|
||||||
List<String> itemsString = new ArrayList();
|
List<String> itemsString = new ArrayList();
|
||||||
Iterator var3 = this.protocols.iterator();
|
Iterator var3 = this.protocols.iterator();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user