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
1
vote
0 answers

Node-opcua client takes too long to re-connect to the server

Using package node-opcua version 2.14.0 (found at: https://github.com/node-opcua) I have created a simple client that will connect to a server, create a session and create a subscription to listen for value changes. The problem I'm experimenting is…
Eduardo G.R.
  • 377
  • 3
  • 18
1
vote
2 answers

registering OPC-UA Node server to LDS

hello i'm trying to register my OPC-UA server to a local run (for now) local discovery server. So when i run my server whit registerServerMethod set to lds i get this error : RegisterServer to the LDS has failed during secure connection => please…
1
vote
1 answer

How to make endless subscription in OPC UA?

I am writing app using nodeOPCUA. I want to create client and monitor variables. const subscription = await session.createSubscription2({ requestedPublishingInterval: 2000, requestedMaxKeepAliveCount: 20, requestedLifetimeCount:…
Corest
  • 19
  • 3
1
vote
0 answers

server throws error with Prosys and Matrikon clients on events

I have been working through the examples in the node-opcua book which has been very helpful (and will be awesome when it is done!!!!). However, I have run into a problem when using the Prosys and Matrikon clients when the server is posting events.…
bblumberg
  • 11
  • 1
1
vote
1 answer

OPC UA calling Acknowlagement method and fetching Bad_EventIdUnkown in java

Currently i am developing OPCUA client using Eclipse Milo. I am able to read data from OPC UA cpp server and able to write setpoint data to server. I am not able to perform acknowledgement of OPCUA ALarm and events. I tried with node-red opcua…
1
vote
1 answer

Call OPCUA method with struct input argument using node-opcua

I am trying to interface with an RFID reader which implements an OPC-UA server according to this specification. I am trying to call the method ScanStart which takes the ScanSettings struct as an input argument (an AutoID datatype) but despite…
1
vote
1 answer

node-opcua-samples - simple_client.js does not connect to simple_server.js

i'm trying to gain deeper knowledge of using opc. So i installed node js and then node-opcua-samples via npm. Afterwards i went to powershell, changed cwd to the bin directory of node-opcua-samples and started simple_server.js with node…
Gregor Fey
  • 41
  • 4
1
vote
1 answer

Crawl all the objects in OPC-UA address space

I am trying to crawl the objects in the address space. The aim is to store it and then create an XML file with the objects inside. Does anyone know how to do it?
Andrea Fresa
  • 351
  • 2
  • 18
1
vote
1 answer

Is there a built-in mechanism to ignore notifications although value did not change?

To identify a possible problem with my OPC-UA implementation using freeopcua (Python) I created simultaneously an identical minimal example using node-opcua and freeopcua. The issue is that I received notifications for subscriptions although the…
ap0
  • 1,083
  • 1
  • 12
  • 37
1
vote
0 answers

Is it possible to cancel a predefined amount of future asynchronous callbacks if detecting a pattern in their returns? (JavaScript)

Note the second function block first to get a better understanding. So basically I have a large array of "tags" (variables) that are iterated through at the "for (let tag of tagArray) {...}" statement. The values of each of these "tags" is…
About7Deaths
  • 681
  • 1
  • 5
  • 16
1
vote
1 answer

Require node-opcua in electron freezes the electron instance

Electron freezes when node-opcua is required in index.html and a process called Electron Helper takes up 100% of the cpu. I have encountered the problem on macOS 10.14.2, but a friend tested in Windows 10 and that worked. From…
Heenke
  • 21
  • 9
1
vote
1 answer

Subscribe to multiple OPC-UA nodes at once

I need to subscribe to ~1000 nodes, which were created in a hierarchy,…
mustafa
  • 3,605
  • 7
  • 34
  • 56
1
vote
1 answer

node opcua - Need example on how a client can get all the variables for a given UAObject node ID

When I want to implement a Node.js client program and find all the variables under a given UAObject Node ID, how to do that? Is there an OPC UA library written in Node.js to navigate to child nodes or get all variables under a parent UAObject…
1
vote
1 answer

opcua client node : Getting Error: cannot coerce value=4 to Enum

I am using node OPC-UA client and getting following error Error: cannot coerce value=4 to Enum at _decode_enumeration (/Users/xxx/apps/node-opcua-sample/node_modules/node-opcua-factory/src/factories_enumerations.js:52:23) at UserTokenPolicy.decode…
Tranquillity
  • 237
  • 2
  • 9
1
vote
1 answer

Where can I find Standard Node (and IDs) in the OPC UA Specification?

i am creating a simple OPC UA Client. I need to know where i can find a document with the list of all standard nodes and their IDs. Thank you Joshwa
Joshwa
  • 11
  • 1