-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WriteSwitchField #198
Comments
Which version of the ModelCompilier are you using? |
I was using an older version first and that one resulted in something similar to a regular structure, with all the fields of the union available. So then I updated to the latest tag 2.6.0:
The generated code looked promising with the additional switchfield. Unfortunately, it doesn't compile. Maybe I need some additional package? |
That version should be linking to a preview version of the SDK. Can you build the Debug version which builds the SDK from source? |
The DemoModel links fine and it has a Union.
I would like figure out why there is an issue on your machine. |
I checked the DemoModel and that indeed compiles fine. The difference is that I have the following reference:
When I change this to what the demo model uses:
It also compiles. Unfortunately, reading the values (using UaExpert) now results in the following error:
|
A lot of things to check:
If those look fine it may be worth writing a simple client using pre-compiled classes and verifying that works. |
Hi,
I defined a union type
And the generated code requires
IEncoder
to have the methodWriteSwitchField
which isn'tdefined.
Am I doing something wrong?
Best regards,
Tom
The text was updated successfully, but these errors were encountered: