23 lines
637 B
JavaScript
23 lines
637 B
JavaScript
module.exports = function(RED) {
|
|
// Bluetti combobulator
|
|
'use strict';
|
|
RED.log.error('IWANNA CONFIG BLUETTI');
|
|
function bluetti(config) {
|
|
var scuzz = 12345 / 0;
|
|
//RED.log.
|
|
// this.error('CONFIG BLUETTI');
|
|
RED.nodes.createNode(this, config);
|
|
var node = this;
|
|
node.error('CONFIG BLUETTI 2');
|
|
node.config = config;
|
|
// // Node logic here
|
|
// node.on('input', function(msg) {
|
|
// msg.payload = msg.payload.toUpperCase();
|
|
// node.send(msg);
|
|
// });
|
|
}
|
|
RED.log.error('PRE-REG');
|
|
RED.nodes.registerType('bluetti', bluetti);
|
|
RED.log.info('POST-REG');
|
|
};
|