Create a connection
Introduction
This tutorial will show you how to create a connection to an OPC UA server using the OPC UA Client node.
All the @opcua/for-node-red nodes require a connection to an OPC UA server. This connection is created using the OPC UA Client node and can be access by the endpointUrl field of the OPC UA Client node.
You can either select an existing connection by using the combobox or create a new one by selecting the add new OPCUA Endpoint
at the bottom of the combobox.
You can edit the endpoint and connection parameters by clicking on the edit button next to the Connection field:
Changing the parameters affects all the nodes that use this connection.
If you edit the connection parameters, you will need to redeploy your flow for the changes to take effect.
Prerequisites
// create here a tutorial to install the node
Create a connection
-
Add an OPC UA Client node to your flow.
-
Double click on the node to edit it.
-
Click on the edit button next to the Connection field to open the Connection editor.
-
Click on the Add button to create a new connection.
-
Enter the connection parameters and click on the Save button.
-
Click on the Done button to close the Connection editor.
-
Click on the Done button to close the OPC UA Client node editor.
-
Click on the Deploy button to deploy the flow.
-
Click on the debug tab to see the result.