node-opcua / Node Opcua
Programming Languages
Projects that are alternatives of or similar to Node Opcua
node-opcua
node-opcua is an implementation of an OPC UA stack fully written in Typescript for NodeJS.
Node-opcua is the OPC-UA stack running on NodeJS.
Why NodeJS ?
Because nodeJs is a great framework to design asynchronous applications.
Getting started
installing node-opcua as a node package
$ mkdir mytest
$ cd mytest
$ npm init
$ npm install node-opcua --unsafe-perms
$ # create your first app.js file!
installing node-opcua samples as a node package
$ mkdir myserver
$ cd myserver
$ npm init
$ npm install node-opcua-samples --unsafe-perms
$ ./node_modules/.bin/simple_server
or
$ ./node_modules/.bin/simple_client -e "opc.tcp://opcserver.mAutomation.net:4841" -n="ns=1;s=EVR2.system.RTC_SEC"
or
$ ./node_modules/.bin/simple_client -e "opc.tcp://opcuademo.sterfive.com:26543"
Minimum nodejs requirement
- nodejs version 10.23 or above
API Documentation
- check out the API documentation
tutorials and guided examples
Getting professional support
NodeOPCUA is developed and maintained by sterfive.com.
To get professional support, consider subscribing to the node-opcua membership community:
or contact sterfive for dedicated consulting and more advanced support.
β€οΈ Supporting the development effort - Sponsors & Backers
If you like node-opcua and if you are relying on node-opcua in one of your projects, please consider becoming a backer and sponsoring us, this helps us to maintain a high-quality stack and constant evolution of the stack.
If your company would like to participate and influence the development of future versions of node-opcua please contact sterfive.
Road-map
Those are the items we would like to achieve in the next version of the API.
- improved documentation
- Compliance testing and certification (CTT)
- Pub-sub support
- support for redundancy
- more tutorials
Advanced topics
installing node-opcua from source
running the demo server from source
$ git clone https://github.com/node-opcua/node-opcua.git
$ cd node-opcua
$ npm install -g pnpm
$ pnpm install
$ pnpm recursive install
$ pnpm build
$ node packages/node-opcua-samples/bin/simple_server
running the demo client from source
$ git clone https://github.com/node-opcua/node-opcua.git
$ cd node-opcua
$ npm install -g pnpm
$ pnpm install
$ pnpm recursive install
$ pnpm build
$ node packages/node-opcua-samples/bin/simple_client.js -e "opc.tcp://opcserver.mAutomation.net:4841" -n="ns=1;s=EVR2.system.RTC_SEC"
Tutorials
Contributing
$ git clone git://github.com/node-opcua/node-opcua.git
$ cd node-opcua
$ npm install -g pnpm
$ pnpm install
$ pnpm recursive install
$ pnpm build
Supported Features
Service | ||
---|---|---|
Discovery Service Set | ||
FindServers() | β | |
GetEndpoints() | β | |
RegisterServer() | β | |
RegisterServer2() | β | |
FindServersOnNetwork() | β | |
Secure Channel Service Set | ||
OpenSecureChannel() | β | |
CloseSecureChannel() | β | |
Session Service Set | ||
CreateSession() | β | |
CloseSession() | β | |
ActivateSession() | β | |
Cancel() | ||
View Service Set | ||
Browse() | β | |
BrowseNext() | β | |
TranslateBrowsePathsToNodeIds() | β | |
RegisterNodes() | β | |
UnregisterNodes() | β | |
Attribute Service Set | ||
Read() | β | |
Write() | β | |
HistoryRead() | π | |
HistoryUpdate() | π | |
MonitoredItems Service Set | ||
CreateMonitoredItems() | β | |
ModifyMonitoredItems() | β | |
SetMonitoringMode() | β | |
SetTriggering() | π | |
DeleteMonitoredItems() | β | |
Subscription Service Set | ||
CreateSubscription() | β | |
ModifySubscription() | β | |
DeleteSubscriptions() | β | |
Publish() | β | |
Republish() | β | |
TransferSubscriptions() | β | |
Node Management Service Set | ||
AddNodes() | π | |
AddReferences() | π | |
DeleteNodes() | π | |
DeleteReferences() | π | |
Query Service Set | ||
QueryFirst() | π | |
QueryNext() | π |
Transport Protocol | ||
Transport | Status | Comment |
UA-TCP UA-SC UA Binary | β | OPC.TCP - Binary |
SOAP-HTTP WS-SC UA Binary | π | HTTP/HTTPS - Binary |
SOAP-HTTP WS-SC UA XML | π | |
SOAP-HTTP WS-SC UA XML-UA Binary | π | |
Security Policies | ||
Policy | Status | Comment |
None | β | |
Basic128Rsa15 | β | deprecated in 1.04 |
Basic256 | β | deprecated in 1.04 |
Basic256Sha256 | β | |
Authentication | Status | Comment |
Anonymous | β | |
User Name Password | β | |
X509 Certificate | β | |
client facets | ||
Base Client Behaviour | β | |
AddressSpace Lookup | β | |
Attribute Read | β | |
DataChange Subscription | β | |
DataAccess | β | |
Discovery | β | |
Event Subscription | β | |
Method call | β | |
Historical Access | π | |
Advanced Type | β | |
Programming | π | |
Auditing | π | |
Redundancy | π | Sponsors wanted |
server profiles | ||
Core Server | β | |
Data Access Server | β | |
Embedded Server | β | |
Nano Embedded Device Server | β | |
Micro Embedded Device Server | β | |
Standard DataChange Subscription Server | β | |
Standard Event Subscription Server | β | |
Standard UA Server | β | |
Redundancy Transparent Server | π | Sponsors wanted |
Redundancy Visible Server | π | Sponsors wanted |
Node Management Server | π | Sponsors wanted |
Auditing Server | π | |
Complex Type Server | β | (sponsored) |
Session Diagnostics | β | (sponsored) |
Subscription Diagnostics | β | (sponsored) |
Alarms & Conditions | β | (sponsored) |
Pub & Sub | π | Sponsors wanted |
Feedback
-
if you're using node-opcua in one of your project, please feel free to leave a comment and a quick description in the wiki
-
if you have a particular wish or found a issue, let us known and create an issue