Node-red-contrib-opcua server persistent

Hello,
i'm new user, but i need to use an OPCUA server in nodered to exchange variable from panel PC to device with nodered installed.
So i tried a node OpcUa-Server, i add variable, but there is not persistent, so when i restart nodered i need to save value to global context and after write to server OPC UA value and structure.
It is not possible to save name of variable and value to a file?

Yes, you can persist values between reboots.

The node-red (built-in) solution is to enable file based context in your settings file to persist values between reboots: Working with context : Node-RED

Alternatively...

Use a contrib node: e.g. node-red-contrib-key-value-store

image

Yes I use global context but it's bit complicated...I hope it could be easier with functionality of server..

I just added new feature: Save / Load address space (nodeset) into the file (xml format).
v0.2.256
See: Save / Load server address space (nodeset.xml) · Issue #374 · mikakaraila/node-red-contrib-opcua · GitHub

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.