Skip to content

Commit

Permalink
refactor(binding-opcua): remove unnecessary data transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeintner committed Oct 13, 2023
1 parent b44448b commit 6346679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/binding-opcua/src/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class OpcuaBinaryCodec implements ContentCodec {
const binaryStream = new BinaryStream(bytes);
const dataValue = new DataValue();
dataValue.decode(binaryStream);
return JSON.parse(JSON.stringify(opcuaJsonEncodeDataValue(dataValue, true)));
return opcuaJsonEncodeDataValue(dataValue, true);
}

valueToBytes(
Expand Down

0 comments on commit 6346679

Please sign in to comment.