Skip to content

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

Description

@mregen

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

codegenModelCompiler and source generation related

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions