Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/main' into feature/submo…
Browse files Browse the repository at this point in the history
…del-template-processor
  • Loading branch information
tbischoff2 committed Nov 4, 2024
2 parents a0b2d39 + dcbaa37 commit 8a06fdd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public Variant convert(TypedValue<?> value, NodeId targetType) throws ValueConve
}
});
register(Datatype.DURATION, Identifiers.Double, new OpcUaToAasValueConverter() {
@Override
public TypedValue<?> convert(Variant value, Datatype targetType) throws ValueConversionException {
if (Objects.isNull(value) || value.isNull()) {
return null;
Expand All @@ -78,11 +79,13 @@ public TypedValue<?> convert(Variant value, Datatype targetType) throws ValueCon
}
});
register(Datatype.HEX_BINARY, Identifiers.ByteString, new OpcUaToAasValueConverter() {
@Override
public TypedValue<?> convert(Variant value, Datatype targetType) throws ValueConversionException {
return convertByteString(value, targetType);
}
});
register(Datatype.BASE64_BINARY, Identifiers.ByteString, new OpcUaToAasValueConverter() {
@Override
public TypedValue<?> convert(Variant value, Datatype targetType) throws ValueConversionException {
return convertByteString(value, targetType);
}
Expand Down

0 comments on commit 8a06fdd

Please sign in to comment.