Node-OPCUA by example - edition 2022

Retired

This book is no longer available for sale.

Node-OPCUA by example - edition 2022

About the Book

This book is the second edition of "NodeOPCUA by Example". It provides hands-on recipes to best use node-opcua, the OPCUA stack for javascript and typescript.

It is updated and enriched regularly to match the most recent release version of node-opcua.

About the Author

Etienne Rossignon
Etienne Rossignon

About NodeOPCUA


Node-OPCUA is OPC-UA's open-source reference implementation in javascript 

Since its launch in 2014, Node-OPCUA has been downloaded more than 500.000 times and has nearly 30,000 downloads per month.

Node-OPCUA is used worldwide in many industrial applications and is an essential building block for many world-class applications such as  IBM's IIOT Node-red and Amazon Greengrass platforms.

Node-OPCUA allows easy writing of servers and interactive clients.

Node-OPCUAis published in open-source (MIT license) on GitHub and has an active community of testers and contributors.


About Etienne Rossignon


Etienne is the author and designer of Node-OPCUA, the OPCUA framework for nodejs and Founder of Sterfive


Etienne has more than 25 years of experience in software development innovation for the industry in the field of CAD / CAM, dimensional metrology, and machine-to-machine communication and holds a double Master in Science & Technology from “Arts & Metiers”.


About Sterfive


Sterfive develops the next generation of open-source software for the industry. It specializes in the communication of industrial objects thanks to the OPCUA interoperability standard.

Sterfive is exclusively funding its open-source R & D thanks to the support of its sponsors who are industrial users of Node-OPCUA.

Sterfive offers expertise, assistance, and support services to its industrial customers who want to implement Node-OPCUA in the best conditions in their applications.

Sterfive also develops custom software for its customers such as dedicated OPCUA embedded servers and aggregators. Sterfive is a Corporate Member of the OPCUA Foundation and a UMATI Partner





Table of Contents

    • Introduction
      • 1.1 Assumptions
      2 Getting Started
      • 2.1 installating pre-requistes
      3 Basic NodeJS Concepts
      • 3.1 Async programming in node JS
        3.2 Understanding Promise & Async/Await
        3.3 Debuging
      4 Basic OPCUA Concepts
      • 4.1 OPCUA
        4.2 Address Space
        4.3 the different node classes
        4.4 Node Attributes
      5 Implementing a OPCUA Server with NodeOPCUA
      • 5.1 writing our first node-opcua server
        5.2 our first server in TypeScript
        5.3 Populating addressSpace
        5.4 adding a custom reference
        5.5 binding variable with external values
        5.6 updating ua variable by polling
        5.7 Populating the address space
        5.8 Creating a server with custom nodeset2.xml
        5.9 Server with secure endpoints
        5.10 Server with events
        5.11 Server with alarm
        5.12 Server with user management
      • 6. State Machine
        • 6.1 Analyser Device Integration State machines
          6.2 Dealing with OPCUA Enumeration types on the server-side
          6.2 accessing enum variables defined in an external nodeset
        7 creating a custom OPCUA Discovery server
        • 7.1 installing prerequisite
          7.2 discovery server
          7.3 server
        7 server advanced concepts
        • 8.1 Semantic Change Event
          8.2 server with method
          8.3 server with standard nodesets
          8.4 server with external nodeset
          8.5 Exposing a File in a node-opcua server
          8.6 exposing a File node in the address space
          8.7 FAQ
          8.8 Client reading a file
          8.9 Client reading a file
          8.10 server with user managmeent support
          8.11 Packaging node-opcua application
        9 Implementing a OPCUA Client with NodeOPCUA
        • 9.1 implementing a simple client
          9.2 connecting to a client with a user/name password authentication
          9.3 connecting with a X509 certificate
          9.4 Create a client session with a X509 user certificate
          9.5 reading a value
          9.6 Connecting using encrypted channel
          9.7 client with large number of monitored items
          9.8 script
        10 Extracting endpoint
        • 10.1 Client with BrowseNext and Continuation points
          10.2 Client with Crawler
          10.3 simple client fetching extension object
          10.4 Client with simple client fetching extension object
        11 Extension Objects
      • 11.1 server exposing an ExtensionObject .
      • 11.2 client reading an extension object
      • 11.3 client writing an extension object

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub