Skip to content

Commit

Permalink
fix(plc4j): opcua Include Encoding Mask in NULL Extension Object
Browse files Browse the repository at this point in the history
  • Loading branch information
hutcheb committed May 16, 2022
1 parent dd3b0cf commit 4e14bc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class SecureChannel {
protected static final ExtensionObject NULL_EXTENSION_OBJECT = new ExtensionObject(
NULL_EXPANDED_NODEID,
new ExtensionObjectEncodingMask(false, false, false),
new NullExtension(), false); // Body
new NullExtension(), true); // Body

public static final Pattern INET_ADDRESS_PATTERN = Pattern.compile("(.(?<transportCode>tcp))?://" +
"(?<transportHost>[\\w.-]+)(:" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class OpcuaProtocolLogic extends Plc4xProtocolBase<OpcuaAPU> implements H
NULL_EXPANDED_NODEID,
new ExtensionObjectEncodingMask(false, false, false),
new NullExtension(),
false); // Body
true); // Body

private static final long EPOCH_OFFSET = 116444736000000000L; //Offset between OPC UA epoch time and linux epoch time.
private OpcuaConfiguration configuration;
Expand Down

0 comments on commit 4e14bc0

Please sign in to comment.