Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-i2c

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.8.0 to 0.8.1

20

i2c/26-i2c.js

@@ -172,10 +172,14 @@ module.exports = function(RED) {

} else {
// node.log('log write data'+ JSON.stringify([address, command, myPayload.length, myPayload, myPayload.toString("utf-8")]));
node.port.writeI2cBlock(address, command, myPayload.length, myPayload, function(err) {
if (err) {
node.error(err, msg);
} else {
node.send(msg);
}
});
if (isNaN(command)) {
node.port.i2cWrite(address, myPayload.length, myPayload, function(err) {
if (err) { node.error(err, msg); }
else { node.send(msg); }
});
}
else {
node.port.writeI2cBlock(address, command, myPayload.length, myPayload, function(err) {
if (err) { node.error(err, msg); }
else { node.send(msg); }
});
}
}

@@ -182,0 +186,0 @@ } catch(err) {

2

package.json
{
"name": "node-red-contrib-i2c",
"version": "0.8.0",
"version": "0.8.1",
"description": "A Node-RED node to talk to the Raspiberry PI's I2C port",

@@ -5,0 +5,0 @@ "dependencies": {

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