module.exports = function(RED) { // Bluetti combobulator 'use strict'; function bluetti(config) { //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 bluetti'); RED.nodes.registerType('bluetti', bluetti); RED.log.info('POST-REG bluetti'); };