Skip to content

Instantly share code, notes, and snippets.

View davidemess's full-sized avatar

Davide Messori davidemess

View GitHub Profile
const endpointUrl = "opc.tcp://192.168.249.31:4840";
const opcua = require("node-opcua");
const StatusCodes = opcua.StatusCodes;
const AttributeIds = opcua.AttributeIds;
const DataTypes = opcua.DataType;
let client;
let session;
async function CreateConnection(){