From d8c884784e2128e7c956971702b0a18d48c85571 Mon Sep 17 00:00:00 2001 From: karaimi Date: Tue, 11 Jun 2019 07:21:36 +0300 Subject: [PATCH] Minor fixes --- opcua/102-opcuaclient.js | 2 +- opcua/104-opcuaserver.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opcua/102-opcuaclient.js b/opcua/102-opcuaclient.js index 2fd66aa..2faf339 100644 --- a/opcua/102-opcuaclient.js +++ b/opcua/102-opcuaclient.js @@ -846,7 +846,7 @@ module.exports = function (RED) { if (node.deadbandType == "a") { deadbandType = subscription_service.DeadbandType.Absolute; } - if (node.deadbandType == "a") { + if (node.deadbandType == "p") { deadbandType = subscription_service.DeadbandType.Percent; } var dataChangeFilter = new subscription_service.DataChangeFilter({ diff --git a/opcua/104-opcuaserver.js b/opcua/104-opcuaserver.js index f61c652..03f34a9 100644 --- a/opcua/104-opcuaserver.js +++ b/opcua/104-opcuaserver.js @@ -82,7 +82,7 @@ module.exports = function (RED) { verbose_warn("create Server from XML ..."); var serverPkg = installedPath.getInstalledPathSync('node-opcua-server', { paths: [ - path.join(__dirname, '..'), + path.join(__dirname, '../..'), path.join(process.cwd(), '.node-red/node_modules'), ], }) diff --git a/package.json b/package.json index b7509a8..1c83959 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-opcua", - "version": "0.2.45", + "version": "0.2.46", "description": "A Node-RED node to communicate via OPC UA based on node-opcua library.", "repository": { "type": "git",