Search code examples
opc-uanode-opcua

Connecting node-opcua client with multpile opcua-server


Now I have been exploring OPC UA, I have used node-opcua npm package for both server and client side. Here my requirement is, I need to connect the OPC UA-client with multiple servers.

When I learned this OPC UA theoretically, I saw that this (Connecting a client with multiple servers) is possible in OPC UA. But in node-opcua I could not do this. For now, I connected the client with a single OPC UA-server.

click to see the node-opcua npm package

Questions

  1. Is it possible to connect the OPC-UA-client with multiple OPC UA-servers, when using node-opcua npm package?

  2. If it is possible, what should I do to achieve that?


Solution

  • you need to create a instance of OPCUAClient for each connection.