2017-06-25 18:48:17 +02:00
|
|
|
module.exports = function(RED) {
|
|
|
|
|
|
2017-06-30 21:32:10 +02:00
|
|
|
function XiaomiConfiguratorNode(n) {
|
2017-06-25 18:48:17 +02:00
|
|
|
RED.nodes.createNode(this, n);
|
|
|
|
|
this.name = n.name;
|
2017-06-30 19:14:32 +02:00
|
|
|
this.deviceList = n.deviceList || [];
|
2017-06-30 22:02:50 +02:00
|
|
|
this.key = n.key;
|
2017-12-31 23:10:06 +01:00
|
|
|
this.ip = n.ip;
|
2017-06-25 18:48:17 +02:00
|
|
|
|
|
|
|
|
var node = this;
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-30 21:32:10 +02:00
|
|
|
RED.nodes.registerType("xiaomi-configurator", XiaomiConfiguratorNode);
|
2017-06-25 18:48:17 +02:00
|
|
|
|
|
|
|
|
}
|