New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-knx

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-knx - npm Package Compare versions

Comparing version 0.7.3 to 0.7.4

14

knx.js

@@ -101,2 +101,4 @@ /**

}
if (payload.value == null)
action = 'read';
this.groupAddrSend(payload.dstgad, payload.value, payload.dpt, action, function (err) {

@@ -171,6 +173,7 @@ if (err) {

dpt = dpt ? dpt.toString(): '1';
if (action !== 'write')
if (action !== 'write' && action!== 'read')
throw 'Unsupported action[' + action + '] inside of groupAddrSend';
node.log('groupAddrSend action[' + action + '] dstgad:' + dstgad + ', value:' + value + ', dpt:' + dpt);
switch (dpt) {
if (action === 'write') {
switch (dpt) {
case '1': //Switch

@@ -195,3 +198,3 @@ value = (value.toString() === 'true' || value.toString() === '1')

throw 'Unsupported dpt[' + dpt + '] inside groupAddrSend of knx node'
}
}

@@ -219,3 +222,6 @@

node.log("sendAPDU: " + util.inspect(value));
connection.Action(dstgad.toString(), value, null);
if (action === 'read')
connection.RequestStatus(dstgad.toString());
else if (action === 'write')
connection.Action(dstgad.toString(), value, null);
callback && callback();

@@ -222,0 +228,0 @@ }

{
"name": "node-red-contrib-knx",
"version": "0.7.3",
"version": "0.7.4",
"description": "KNX for node-red, utilizing pure JavaScript KNXnet/IP driver (both works: tunelling & routing)",

@@ -5,0 +5,0 @@ "main": "knx.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc