Unlocking the Full Potential of OPC UA with Typescript and NodeJS - http://node-opcua.github.io/
MIT License
Published by erossignon over 6 years ago
Version 0.2.0 introduces a new way to call asynchronous methods on OPCUAClient and ClientSession objects
Promised version can be chained more easily. They can also be used with async/await on nodeJS > 8 or Typescript (with ES2015 support enabled)
some breaking changes have been necessary to normalize all async function and make sure they only provide a single output value. As such, old code using ClientSession#read, #read #browse #readVariableValue #readHistoryValue #readAllAttributes will have to be fixed.
Each OPCUAClient ClientSession async methods comes in two forms:
example form1: reading many dataValue at once
var nodesToRead = [
{ nodeId: "ns=2;s=Furnace_1.Temperature",attributeId: AttributeIds.Value},
{ nodeId: "ns=2;s=Furnace_2.Temperature",attributeId: AttributeIds.Value}
];
session.read(nodesToRead,function(err,dataValues,diagnosticInfos) {
if (!err) {
dataValues.forEach(dataValue=>console.log(dataValue.toString()));
}
});
or with the Promise version:
session.read(nodesToRead).then(function(dataValues) {
//...
});
or with the async/await version (node >8)
const dataValues = async session.read(nodesToRead); // an Array
var nodeToRead = {
nodeId: "ns=2;s=Furnace_1.Temperature",
attributeId: AttributeIds.BrowseName
};
session.read(nodeToRead,function(err,dataValue,diagnosticInfos) {
if (!err) {
console.log(dataValue.toString());
}
});
or with the Promise version:
session.read(nodeToRead).then(function(dataValue) {
//...
});
or with the async/await version (node >8)
const dataValue = async session.read(nodeToRead);
Published by erossignon almost 7 years ago
π Enhancements:
π performance
π bug fixes:
π breaking changes:
π¬ contributors:
π bug fixes:
π Enhancements:
π¬ contributors:
π Enhancement
π₯ CTT:
π Bug fixing:
π· Typescript support
π¬ contributors:
@enobufs, @tomsoftware,
Published by erossignon almost 8 years ago
π Bug fixing
π Enhancements
π¬ Contributors
Published by erossignon almost 8 years ago
π bug fixing
Published by erossignon almost 8 years ago
π bug fixing
collections
package to prevent issue with uncompliant find
method redefinitionπ Enhancement
π¬ contributors
Published by erossignon about 8 years ago
π bug fixing
π enhancement
Published by erossignon about 8 years ago
π Bug fixing
π enhancement
π¬ Contributors
Published by erossignon over 8 years ago
π bugs fixing
#224 use utils.isNullOrUndefined to fix behavior on nodejs 0.10.24 (@Alexi16)
#213 event fields shall be null instead of StatusCode.BadNoMatch (@awcullen)
#221 fix DataChange filter check(@awcullen)
#219 Error Handling for Socket Error EPIPE added (@michikuehne)
#209 Fix issue with node-expat in lib/xml2json/lib.js (@sandro-k)
π enhancements:
[ef17e1ab62e54714355e777687529de4ae6f089f] improve subscriptions and monitored items CTT conformance
[55489d2752ca113839dd6b38039fc0bff28c6369] add TransferSubscriptions Service support
[2181982edb9e4baafc0b81580d84b9f12b8977d2][802d011c593fc03e05f2e1c0e7e0695cac2d58a6] add sample image node for simulation
π¨
[450657d6575f7cd78780bae30fcb0ec3cb7b6083] move crypto related routines to dedicated npm packages.
π¬ contributors
@awcullen @michikuehne @Alexi16 @sandro-k
Published by erossignon over 8 years ago
π bug fixing:
π enhancement:
π breaking changes
π¬ contributors
@GermanBluefox @gilesbradshaw @nathanpocock @awcullen @legolassid
Published by erossignon over 8 years ago
π bug fixing
Published by erossignon over 8 years ago
π¨ enhancements:
π bug fixing
π¬ contributors
π¨ enhancement
π breaking changes
π¬ contributors
@mikakaraila @pelis @zombinary @gunnarleffler @danners @nestoteles
Published by erossignon almost 9 years ago
π¨ enhancement
π bug fixing
π breaking changes
2451b38ad6ed75c203b04cf927e398ac8118e34e rename AddressSpace#findObject as AddressSpace#findNode
43dc35d991477f5032e85f10f0e9dd3625c142de make AddressSpace#findObjectByBrowseName , AddressSpace#addObjectInFolder, AddressSpace#getFolder , ServerEngine#addVariable , ServerEngine#findObject, ServerEngine#addFolder,ServerEngine#addView, ServerEngine#addMethod, ServerEngine#addObjectInFolder deprecated
a2a35a633a6194ea3c826d84ae77cf7d9e8e8439 make AddressSpace#findObjectByBrowseName and AddressSpace#getFolder deprecated
485b562384ea54d407fce015a2caa0df79226175 addView now takes a single options arguments, parent object shall be specified with componentOf parameter
master
π― compliance
π§ work in progress
π¬ contributors
@mikakaraila
Published by erossignon almost 9 years ago
π bug fixing
π breaking changes
π¨ enhancement
π― compliance
π§ work in progress
π¬ contributors
Published by erossignon about 9 years ago
π bug fixing
π breaking changes
π¨ enhancement
π― compliance
π§ work in progress
π¬ contributors
Published by erossignon about 9 years ago
π¨ enhancement
π performance improvement
π bug fixing
π― compliance
π§ work in progress
π breaking changes
π¬ contributors
Published by erossignon over 9 years ago
π performance improvment
π¨ code improvment
π bug fixing
β added tests
π¬ contributors:
Published by erossignon over 9 years ago
π enhancement
π bug fixes