Node-red-contrib-bluetti/bluetti/bluetti.js

21 lines
582 B
JavaScript
Raw Normal View History

2026-09-27 18:43:05 +00:00
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');
};