node-red-contrib-digital-factory
Version:
Node-Red nodes for Supply Chain Wizard's Digital Factory Platform
36 lines (21 loc) • 644 B
JavaScript
module.exports = function(RED) {
// Main function called by Node-RED
function scwDfPortalConnection(config) {
RED.nodes.createNode(this,config);
this.deviceId = config.deviceId;
this.deviceKey = config.deviceKey;
}
// Registration of the node into Node-RED
RED.nodes.registerType("DF Portal",scwDfPortalConnection,
{
defaults: {
//name: {value:"My Digital Factory Portal"},
client: {value: "mycompany"},
user: {value: "myusername"},
},
credentials: {
password: {type:"password"},
}
}
);
}