Has anyone ever used the "loadAddressSpace" command of the "OpcUa - Server" node of the "node-red-contrib-opcua" library?
I'm trying to create an XML of variables to load into the OPC UA server when the flow starts.
This is so that when the flow starts I already have a correctly configured server without having to execute the "AddVariable" and "AddFolder" commands individually.
As a test I'm doing this:
I modify the server with the "addVariable" and "AddFolder" commands
Use the "saveAddressSpace" command to save the configuration I created
I restart node red and use the "loadAddressSpace" command to reload the previously loaded configuration
I think the problem is in the file I try to upload.
I believe this because seeing the library code the .push() method is used
to "add" the configuration to the already existing one.
Therefore the XML does not have to contain the entire server configuration but only a part.
However, I can't find an example of a "configuration piece" in XML to load.
Does anyone have more experience with OPC UA or the library itself?
I hope @mikakaraila or other experts could help me