Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Modified to test in GLN site
Browse files Browse the repository at this point in the history
  • Loading branch information
junh-liang committed Jun 6, 2018
1 parent 3bf3c97 commit 5398dfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions nifi-opcua-nar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<artifactId>nifi-opcua-nar</artifactId>
<version>1.0</version>
<packaging>nar</packaging>
<build>
<finalName>nifi-opcua</finalName> <!-- Define a name for the nar file so that it is easy to access from Dockerfile -->
</build>
<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
<source.skip>true</source.skip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ public void onEnabled(final ConfigurationContext context) throws InitializationE

EndpointDescription endpointDescription = null;
for (EndpointDescription ed : endpoints) {

getLogger().info("Endpoint: " + ed.getEndpointUrl() + " security: " + ed.getSecurityPolicyUri());
if (ed.getSecurityPolicyUri().equals(securityPolicy)) {
endpointDescription = ed;
getLogger().debug("Connecting to endpoint " + ed.getEndpointUrl()
getLogger().info("Connecting to endpoint " + ed.getEndpointUrl()
+ " with security policy " + ed.getSecurityPolicyUri());
}
}
Expand All @@ -126,7 +126,7 @@ public void onEnabled(final ConfigurationContext context) throws InitializationE
}

OpcUaClientConfigBuilder cfg = new OpcUaClientConfigBuilder();
cfg.setEndpoint(endpoints[0]);
cfg.setEndpoint(endpointDescription);
opcClient = new OpcUaClient(cfg.build());
opcClient.connect().get();

Expand Down

0 comments on commit 5398dfe

Please sign in to comment.