Questions tagged [node-opcua]

Node OPC/UA is an implementation of an OPC UA stack fully written in JavaScript and Node.js

Node-OPCUA, is an implementation of an stack fully written in and

High Quality

According to their website, has been developed using TDD and benefits from more than 2500 unit tests and 90% code coverage. uses Travis as a continuous integration service.

Link to continuous integration (CI) page here.

Also available on TypeScript

can be use in as well as in .

Platforms

runs on all the platforms that supports (ie: , and ). It also supports resource constrained, low cost, low power single-board computers such as .

Documentation

will benefit from a comprehensive SDK API documentation, numerous end-to-end functional tests, and a set of practical examples to help you learn how to use it.

The documentation directory can be viewed here, or you can view the documentation for version 2.0.0.

Useful Links

121 questions
3
votes
1 answer

nodejs-How use node-opcua access a remote opc server?

I found a better project node-opcua in github, use the simple example of this project can create a opc server and client, and in the local can access, I need to access a remote opc server now, provide a few parameters are: IP network nodes (such as…
Likey.Yung
  • 33
  • 1
  • 4
3
votes
1 answer

How to use node-opcua Subscription priority?

The Client subscription in node-opcua has an option called priority. It is a numerical field. I'm not able to understand whether subscription with Priotity=1 will get higher priority than Priority=10 or lower. The default priority in source code is…
Dushyant Bangal
  • 6,048
  • 8
  • 48
  • 80
2
votes
2 answers

Cannot connect to Prosys OPC UA Simulation Server using node-opcua

I am trying to build an opcua client using the node-opcua library and I am testing it by trying to get it to connect to the Prosys OPC UA Simulation Server. I used the basic client example to attempt a connection but it doesn't seem to work and I…
Aman
  • 86
  • 1
  • 6
2
votes
1 answer

How to Get the Node IDs of an OPCUA Server from UA Expert?

I am a noob in dealing with OPCUA and trying the python library to interface with a server. I have already established a connection with the OPCUA Expert application, and this is what a screenshot looks like. This is how my sample python code looks…
Della
  • 1,264
  • 2
  • 15
  • 32
2
votes
0 answers

Use and results in multi nodes in OPCUA client

I need to monitor multiple nodes in upcua via node.js. Unfortunately I can't get the same result between one node and multiple nodes. In the second case, the value of the nodes seems to be missing. This is the code for one node only const…
user1636103
  • 31
  • 1
  • 5
2
votes
0 answers

node-opcua OPCUAClient.connect error: Invalid position

When connecting to an OPCUA Server using an endpoint (opc.tcp://{serverIP:port}/OPCUASserver), I am getting an error that I do not know how to interpret. I create an OPCUAClient using: let client = OPCUAClient.create(clientOptions); Then call…
2
votes
0 answers

node-opcua, nodejs, express: Add Variable nodes dynamically after run the OPCUAserver

Reading the documentation and examples of the OPC-UA foundation, the variables nodes are always added before the statement to start run the server. Is it possible to add them after the server has been started? If I change the order of the statements…
2
votes
1 answer

How to get connected clients and client certificate in node-opcua server

I have a node-opcua server setup with 2 clients connected to it with Security Mode set to SignAndEncrypt. Now, I have 2 questions: Is there a way for the server to find out how many clients are connected to it? The server application will like to…
Konsy
  • 49
  • 1
  • 8
2
votes
2 answers

Node-OPCUA Connect to Server with unknown securityMode/securityPolicy

I am trying to connect to an opcua server with unknown securityMode and securityPolicy. Probably I have a basic understanding problem, but according to the OPCUA specification I can get the EndpointDescription via the local DiscoveryServer and then…
bginnHH
  • 73
  • 2
  • 9
2
votes
0 answers

Security token has really expired and shall be discarded !!!! (lifetime is = 60000 )

I have the problem that my node-red opc client does not get new data after some days. I use node-opcua as a server and create a subscription to some variables. After some time (about 2 days) the server outputs the following message. Security token…
2
votes
1 answer

How to change the nodeid in freeopcua for python?

I've searched for hours how to change the nodeid of my objects/variables in freeopcua, but unfortunately can't figure it out. Can someone with more experience help me out here please?
Mr Pickel
  • 95
  • 10
2
votes
2 answers

Connection configuration loops - Prosys OPC UA Client

I'm using sample codes from documentation and I'm trying to connect to server using Prosys OPC UA Client. I have tried opcua-commander and integration objects opc ua client and it looks like server works just fine. Here's what is happening: After…
TwistedOwl
  • 1,195
  • 1
  • 17
  • 30
2
votes
0 answers

node-opcua in connection to OPC UA server 'The user identity token is valid but the server has rejected it'

I use the opc client which is on https://github.com/node-opcua/node-opcua. I have configure the server in anonymous mode but when I want to open a session I get the error: ServiceFault returned by server and 'The user identity token is valid but the…
farminf
  • 301
  • 1
  • 11
2
votes
1 answer

How can I generate a server AddressSpace from a XML nodeset file?

I am getting familiar with the node-opc-ua project and I want to generate a servers address space from a given nodeset (xml file) automatically. Is there a possibility?
kratsching
  • 75
  • 1
  • 9
1
vote
2 answers

Cannot activate local server NODE-RED

Hi everyone, I have a question about NODE-RED. When I call node-red on cmd, all palletes and server are loaded, besides there are some warnings and errors like a picture and I cannot access to the server. Can someone help me to solve this problem…