You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

thing-it-device-enocean-ip

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thing-it-device-enocean-ip - npm Package Compare versions

Comparing version

to
0.2.23

8

default-units/pressureSwitch.js

@@ -21,2 +21,5 @@ module.exports = {

}
}, {
label: 'Last Operation Timestamp',
id: 'lastOperationTimestamp'
}],

@@ -70,6 +73,7 @@ events: [{

dataArray = telegram.telegramInfo.data.match(/.{1,2}/g);
console.log("Data bits: ", dataArray[2]);
//console.log("Data bits: ", dataArray[2]);
if(dataArray[2] === "11") {
this.state.lastOperation = "Button Pressed";
this.state.pressed = true;
this.state.lastOperationTimestamp = moment().toISOString();
console.log(this.state);

@@ -81,5 +85,7 @@ this.publishEvent('buttonPressed', {});

this.state.pressed = false;
this.state.lastOperationTimestamp = moment().toISOString();
console.log(this.state);
this.publishEvent('buttonReleased', {});
}
this.publishStateChange();
}

@@ -86,0 +92,0 @@ });

2

package.json
{
"name": "thing-it-device-enocean-ip",
"version": "0.2.22",
"version": "0.2.23",
"description": "[thing-it-node] Device Plugin for EnOcean IP products.",

@@ -5,0 +5,0 @@ "authors": "Marc Gille",