Skip to content

node-opcua/node-opcua-sample

Repository files navigation

node-opcua-sample

a simple OPCUA sample client to demonstrate how to use the node-opcua SDK.

This sample comes with 3 flavors

  • Typescript with async/await support.
$ npm install ts-node -g
$ ts-node simple_client_ts.ts
  • NodeJS version > 10.0 (es2017) with async/await support
$ node simple_client_es8.js
  • old NodeJS ( version 8.0)

    this version uses the old callback back mechanism which is not recommended anymore

$ git clone https://github.com/node-opcua/node-opcua-sample
$ cd node-opcua-sample
$ npm install
$ node simple_client.js

More information

NodeOPCUA By Example - Edition 2024

The book NodeOPCUA by Example - Edition 2024 provides a comprehensive set of examples that goes beyond the simple example provided here.