command, connect and ping nodes split

This commit is contained in:
Niko Vujić
2025-12-31 08:28:11 +01:00
parent f86aabc58d
commit 427bfdfabf
7 changed files with 383 additions and 368 deletions

View File

@@ -0,0 +1,16 @@
module.exports = function (RED) {
function XilicaConnection(config) {
RED.nodes.createNode(this, config);
this.host = config.host;
this.port = parseInt(config.port, 10) || 10007;
this.timeout = parseInt(config.timeout, 10) || 5000;
this.credentials = this.credentials || {};
}
RED.nodes.registerType("xilica-connection", XilicaConnection, {
credentials: {
password: { type: "password" },
},
});
};