Skip to content

Demo Project - Subscribing to namespace values on OPC UA Server through websocket

Notifications You must be signed in to change notification settings

robie2011/opc-ua-websocket-proxy

Repository files navigation

OPC UA Websocket Proxy Demo

This project demonstrate how a browser can subscribe to OPC UA Nodes and receive updates in near realtime.

Screenshot

alt

Starting

cd /repos/
git clone https://github.com/robie2011/opc-ua-websocket-proxy.git
cd opc-ua-websocket-proxy
npm install

# starting websocket server on :8080
node server.js

# open index.html with your browser
# /repos/opc-ua-websocket-proxy/index.html

Configurations

opc ua demo server: opc.tcp://opcuaserver.com:48010

In server.opc-client.js you can setup samplingInterval, requestedPublishingInterval and other subscription related configurations.

const subscriptionConfig = {
    requestedPublishingInterval: 100,
    requestedLifetimeCount: 10,
    requestedMaxKeepAliveCount: 2,
    maxNotificationsPerPublish: 10,
    publishingEnabled: true,
    priority: 10
};
const monitoredItemConfig = {
    samplingInterval: 1,
    discardOldest: true,
    queueSize: 10
};

About

Demo Project - Subscribing to namespace values on OPC UA Server through websocket

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published