OPCFoundation / UA-.NETStandard

OPC Unified Architecture .NET Standard
Other
1.89k stars 926 forks source link

IOP: Data structure Data:Array:ByteValue returns ByteString as datatype instead of Byte array. #2599

Open mregen opened 2 months ago

mregen commented 2 months ago

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

- OS:
- Environment:
- Runtime: 
- Nuget Version: 1.5.374
- Component: generated code
- Server: UA .NET Standard Reference server
- Client: e.g UA Expert

Anything else?

No response