node-red-node-grovepi
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -38,6 +38,7 @@ /** | ||
} | ||
var topicString = 'grovepi/analog/' + this.pin; | ||
this.sensor = node.boardConfig.board.registerSensor('analog', null, this.pin, this.repeat, function(response){ | ||
var msg = {}; | ||
msg.payload = response; | ||
msg.topic = topicString; | ||
node.send(msg); | ||
@@ -77,6 +78,7 @@ }); | ||
} | ||
var topicString = 'grovepi/' + this.sensor + '/' + this.pin; | ||
this.sensor = node.boardConfig.board.registerSensor('digital', this.sensor, this.pin, this.repeat, function(response){ | ||
var msg = {}; | ||
msg.payload = response; | ||
msg.topic = topicString; | ||
node.send(msg); | ||
@@ -83,0 +85,0 @@ }); |
{ | ||
"name": "node-red-node-grovepi", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Node-RED nodes that get sensor data and control ports on the GrovePi", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34521
244