mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Added try/catch around duino board creation. Added customisable pol interval to heat miser node
This commit is contained in:
@@ -23,8 +23,12 @@ function DuinoNode(n) {
|
||||
RED.nodes.createNode(this,n);
|
||||
this.pin = n.pin || "10";
|
||||
node = this;
|
||||
this.board = new duino.Board();
|
||||
|
||||
try {
|
||||
this.board = new duino.Board();
|
||||
}
|
||||
catch {
|
||||
util.log("[duino] - Error establishing board connection!");
|
||||
}
|
||||
|
||||
this.on("input", function(message) {
|
||||
if (typeof(message.payload) == "string") {
|
||||
|
Reference in New Issue
Block a user