Node-RED
The package @opcua/omni-edge-for-node-red adds Server Builder nodes to Node-RED.
The nodes drive the OPC UA server of the gateway.
The package needs Node-RED 4.0 or later and Node.js 22.12 or later.
How Node-RED connects to the gateway
The nodes talk to the gateway through the Edge Link. The Edge Link is a local connection: a Unix socket on Linux, a named pipe on Windows. It does not use Redis. The Edge Link needs a token. Each Node-RED instance must have its own token.
To manage the tokens, use these commands:
opcua-omni-edge edge-link token issue <name>
opcua-omni-edge edge-link token list
opcua-omni-edge edge-link token revoke <name>
Do not share one token between two Node-RED instances.
Do not use one token in two ua-server configuration nodes.
The second connection removes the subscriptions of the first.
The package has no licence of its own. The Omni-Edge licence applies to the gateway.
To give a value written by a flow its status and the time of the device, see Status and source time of a value.
The Docker Compose bundle includes Node-RED at http://localhost:1880.
To store values from a Node-RED flow in a Redis database and read them in the gateway, see Redis.