2
0

Added info notes

This commit is contained in:
Harald Rietman
2017-07-03 22:41:43 +02:00
parent fc5270ad87
commit 7d7eaaa820
9 changed files with 243 additions and 81 deletions

View File

@@ -18,7 +18,7 @@ module.exports = function(RED) {
node.status({fill:"yellow", shape:"ring", text:"waiting for key"});
if (this.gateway) {
if (this.gateway && this.key != "") {
node.on('input', function(msg) {
// var payload = JSON.parse(msg);
var payload = msg.payload;
@@ -98,6 +98,9 @@ module.exports = function(RED) {
} else {
// no gateway configured
if (this.key == "") {
node.status({fill:"red", shape:"dot", text:"no key configured"});
}
}
}