I am using OPCFoundation.NetStandard.Opc.Ua.Server (version 1.5.377.22) and would like to:
- Create a structure data type on the server.
- Create a variable node of that data type on the server.
- Set values for the variable on the server.
I want to do this programmatically in C#, without modelling node sets in another tool.
For demonstration purposes, the structure can be defined by a C# class Person, but I eventually want to create more complex classes containing enumerations and nested structures.
class Person
{
string Name;
int Age;
}
I'm basically looking for an answer like .net - How can I define an enum type in OPC-UA server? which perfectly did the job for enumerations.