The Variant with this Value contains a BuiltInType ByteString, but should be Byte array.
investigation reveals the DataType in the genrerated code is determined by the data value. A Byte[] and a ByteString are both having Value of (byte []) and cannot be distinguished. Needs enhancement to pass the datatype on when the value is returned.
Expected Behavior
No response
Steps To Reproduce
Connect with a client to Ref server
Read the variable and inspect the DataType returned in the Variant.
Environment
- OS:
- Environment:
- Runtime:
- Nuget Version: 1.5.374
- Component: generated code
- Server: UA .NET Standard Reference server
- Client: e.g UA Expert
Type of issue
Current Behavior
The Variant with this Value contains a BuiltInType ByteString, but should be Byte array.
investigation reveals the DataType in the genrerated code is determined by the data value. A Byte[] and a ByteString are both having Value of (byte []) and cannot be distinguished. Needs enhancement to pass the datatype on when the value is returned.
Expected Behavior
No response
Steps To Reproduce
Connect with a client to Ref server Read the variable and inspect the DataType returned in the Variant.
Environment
Anything else?
No response