eclipse / milo

Eclipse Milo™ - an open source implementation of OPC UA (IEC 62541).
http://www.eclipse.org/milo
Eclipse Public License 2.0
1.17k stars 433 forks source link

Loading official NodeSets from https://github.com/OPCFoundation/UA-Nodeset #713

Closed ebrithiljonas closed 4 years ago

ebrithiljonas commented 4 years ago

Is it possible to load NodeSets from the official OPC Foundation repository into Milo? And if not, is that feature planned? BEcause it would make it much easier to define types for special cases like the umati standart.

kevinherron commented 4 years ago

This is not officially supported yet, but there’s a WIP node set parser and a comment explaining how it can be used here: https://github.com/digitalpetri/opc-ua-nodeset-parser/issues/7#issuecomment-609451277

I do plan to have better support for this in the future, either as part of Milo or part of a final version of that library.

GoetzGoerisch commented 4 years ago

@achintya-kumar could you elaborate one how you did this for us?

kevinherron commented 4 years ago

I should clarify: the comment and code I linked to will load a NodeSet XML into an address space, but it does not have anything to do with generating ObjectType or VariableType nodes or struct instances for a given NodeSet. That is a separate concern.

ebrithiljonas commented 4 years ago

So basically it is not possible to generate Object- and VariableTypes from an xml file with the current version?

kevinherron commented 4 years ago

So basically it is not possible to generate Object- and VariableTypes from an xml file with the current version?

It's not, and the code generators I am building will not be part of the Milo project.

They may be open source but I won't decide that until they are done.

Whatever happens, I think I will generate and publish any official companion spec models, regardless of how the code generator ends up being licensed.

ebrithiljonas commented 4 years ago

Okey, thank you for the quick replies and the clarification.