an implementation of a OPC UA stack fully written in javascript and nodejs
Node-opcua is an full OPC-UA stack written in NodeJS.
Why NodeJS ?
Because nodeJs is a great framework to design asynchronous application.
$ mkdir mytest
$ cd mytest
$ npm init
$ npm install node-opcua --unsafe-perms
$ # create your first app.js file !
$ 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"
$ git clone https://github.com/node-opcua/node-opcua.git
$ cd node-opcua
$ npm install
$ node packages/node-opcua-samples/bin/simple_server
$ git clone https://github.com/node-opcua/node-opcua.git
$ cd node-opcua
$ npm install
$ node packages/node-opcua-samples/bin/simple_client.js -e "opc.tcp://opcserver.mAutomation.net:4841" -n="ns=1;s=EVR2.system.RTC_SEC"
- check out the API documentation
- nodejs version 8.16 or above
$ git clone git://github.com/node-opcua/node-opcua.git
$ cd node-opcua
$ npm install
$ npm test
If you like the project, please consider sponsoring the author πΊ π ,
This will give us full of motivation to carry on and keep working on the roadmap.
To get commercial support, please contact sterfive
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 | β | |
Basic256 | β | |
Basic256Sha256 | β | |
Authentication | Status | Comment |
Anonymous | β | |
User Name Password | β | |
X509 Certificate | β | in version 2.0.x (sponsored) |
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 | π | Sponsors wanted |
Session Diagnostics | β | (sponsored) |
Subscription Diagnostics | β | (sponsored) |
Alarms & Conditions | β | (sponsored) |
Pub & Sub | π | Sponsors wanted |
This are the item we would like to achieve in the next version of the API.
- improved documentation
- Compliance testing and certification (CTT)
- more tutorials
-
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