Initial projects implementation

This commit is contained in:
Nick O'Leary
2017-09-20 10:30:07 +01:00
parent 9a8b404054
commit b1cd13d629
49 changed files with 2711 additions and 420 deletions

View File

@@ -120,6 +120,8 @@ module.exports = function(RED) {
tlsNode.addTLSOptions(this.options);
}
}
console.log(this.brokerurl,this.options);
// If there's no rejectUnauthorized already, then this could be an
// old config where this option was provided on the broker node and
// not the tls node
@@ -164,6 +166,7 @@ module.exports = function(RED) {
};
this.connect = function () {
console.log("CONNECT");
if (!node.connected && !node.connecting) {
node.connecting = true;
node.client = mqtt.connect(node.brokerurl ,node.options);