command, connect and ping nodes split
This commit is contained in:
16
nodes/xilica-connection.js
Normal file
16
nodes/xilica-connection.js
Normal 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" },
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user