Added try/catch around duino board creation. Added customisable pol interval to heat miser node

This commit is contained in:
Sean Bedford
2014-03-18 13:38:16 +00:00
parent 3858b4275d
commit d1d177669d
3 changed files with 14 additions and 5 deletions

View File

@@ -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") {