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

StatusBadDataTypeIDUnknown (0x80110000) - Read Custom Extension Object

I am trying to read custom extension object but read status not ok for this node. Do we need to registers a new extension object type or have mechanism to register all custom extension object at a time of connection establishment to server…
Mayank Tripathi
  • 340
  • 2
  • 16
1
vote
1 answer

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…
Bennison J
  • 414
  • 1
  • 12
1
vote
1 answer

OPC UA (dial tcp Connection 192.168.225.225:225 refused)

I have been exploring opcua, I have a simple opcua client and server application, for that I have used an package that was node-opcua, That time my server and client works fine. What my task is, That I need to run the opcua client in the browser,…
Bennison J
  • 414
  • 1
  • 12
1
vote
0 answers

How to send ReverseHello message periodically from OPC UA server to OPC UA client in C#?

I have developed OPC UA SERVER application using CSharp(C#) language. I want to send periodically reverse hello messages to OPC UA Client. I configured the configuration file in following way in OPC UA Server. Please help it. …
Prabs
  • 71
  • 6
1
vote
0 answers

OPC UA Server node.js | Transferring values from one variable to another variable with different nodeID's

I want to push values from rSet into the variable rAct. That means, if in my HMI change the value, then my rAct should have the same value as rSet. I have tried everything possible. Would greatly appreciate any help. The variables rAct and rSet have…
1
vote
1 answer

node-opcua subscribe to event and get all fields

i've found here an example code that works ok as a subscription to events (code below), i'm trying to use it on a custom serve that send some other fields, but if i add those fileds name to the const fields, i get null value, so i would like to get…
Darkmagister
  • 53
  • 1
  • 6
1
vote
0 answers

node-opcua crawler, Transaction has timed out

I'm trying to get all element in plc by using crawler.read method in node-opcua library. At first I was getting TypeError: Cannot read properties of undefined (reading '0') at /node_modules/node-opcua-client-crawler/dist/node_crawler_base.js:27:49.…
Jantoma21
  • 395
  • 4
  • 10
1
vote
2 answers

Node opcua crawler method and ua expert results are different

Opcua node crawler method giving me an array of 745 items. But I can only see around 25 items when I look at ua expert. My current code: const client = opcua.OPCUAClient.create(connectionOption); await client.connect(url); const session = await…
Jantoma21
  • 395
  • 4
  • 10
1
vote
1 answer

How to get groups and tag from the OPC UA server?

I need to create a simple OPS UA client. I found a suitable example and changed it a bit. Here is the resulting code: using System; using System.Threading; using System.Collections.Generic; using Opc.Ua.Client; using Opc.Ua; using…
FaceHoof
  • 89
  • 5
1
vote
0 answers

listen to event with node-opcua

I am trying to listen to an event called 'EventPretreatDone'. Event Node Using the example to minitor an Event found in the node-opcua library i can't get any results. async createSubscription() { const session = await…
Max M.
  • 11
  • 3
1
vote
1 answer

monitor node-opc-ua events

I'm trying to monitor events (instead of variables) from a OPC-UA server using node-opcua. I did not found any example of monitoring events in the client tutorial and found some old issues like this online and some sample code Based on what I see it…
Ansharja
  • 1,237
  • 1
  • 14
  • 37
1
vote
1 answer

Error converting value "Opc.Ua.NodeId" to type 'System.Type'

I am trying to deserialize a JSON using Newtonsoft. However when deserializing a class "Opc.Ua.NodeId" to System.Type. It throws an exception "Error converting value "Opc.Ua.NodeId" to type 'System.Type'. Path 'SessionId.Type'.". When there is…
Amit Kumar
  • 591
  • 2
  • 8
  • 24
1
vote
1 answer

Nodejs OPCUA multiple monitored items in a subscription object

i need subscribe to mutliple monitored item on a subcripiton object. I build below codes in nodejs and working. const itemToMonitor = { nodeId: resolveNodeId("ns=2;s=Channel1.Device1.temprature"), attributeId: AttributeIds.Value …
rehdadth
  • 66
  • 1
  • 7
1
vote
0 answers

node-opcua client cannot connect to ignition endpoint. Client connection rejected by Ignition OPC-UA server

Ignition server security policy is Basic256Sha256. node-opcua client options: const client = OPCUAClient.create({ endpointMustExist: false, securityMode: MessageSecurityMode.SignAndEncrypt, securityPolicy: SecurityPolicy.Basic256Sha256, …
1
vote
0 answers

Cannot manage to send String DateType to OPC UA from Http Request

Which node-red-contrib-iiot-opcua version are you using? 4.0.9 What happened? I'm trying to send an HTTP request over OPC UA node, but it's not working at all. The string node never updates. Server OPCUA-IIoT-Flex-Server Node (Please attach…
z3nth10n
  • 2,341
  • 2
  • 25
  • 49