imports
Use imports: to load a NodeSet2.xml file that is not a standard companion specification, for example the model of your own device type. A NodeSet2.xml file is an XML file that defines the types of an OPC UA model. Each entry gives the alias that browse paths use for the model. It also gives the namespace URI or the file name. Then instances: can make nodes from the types of the file.
Example
imports:
- alias: t
uri: http://sterfive.com/UA/MyAnalyserDevice/
filename: ./model/MyAnalyserDevice.Nodeset2.xml
The value
imports: is a list. Each entry is an imported NodeSet file.
An imported NodeSet file
One NodeSet2.xml file that the gateway loads, with the alias that browse paths use for it.
| Key | What it does | Value | Required |
|---|---|---|---|
alias | The short name that browse paths use for the imported namespace: t in t:AnalyserDeviceType. | text | yes |
uri | The namespace URI that the NodeSet2.xml file declares. It identifies the model, so the gateway finds it again on any machine. | text | |
filename | The path of the NodeSet2.xml file, relative to the configuration file. If the file is missing and uri is set, the gateway looks for the model by its URI. | text | |
publicationDate | The oldest publication date that the gateway accepts for the NodeSet2.xml file. A file published on this date or later is accepted. | text | |
sha256 | The sha256 hash that the NodeSet2.xml file must have. Optional. | text |