UNPKG

node-red-contrib-digital-factory

Version:

Node-Red nodes for Supply Chain Wizard's Digital Factory Platform

39 lines (24 loc) 801 B
module.exports = function(RED) { // Main function called by Node-RED function scwDfDeviceHubConnection(config) { RED.nodes.createNode(this,config); this.deviceId = config.deviceId; this.deviceKey = config.deviceKey; this.deviceIdType = config.deviceIdType; this.deviceKeyType = config.deviceKeyType; } // Registration of the node into Node-RED RED.nodes.registerType("DF Device Hub",scwDfDeviceHubConnection, { defaults: { //name: {value:"My Digital Factory Device Hub"}, deviceIdType: {value: "str"}, deviceId: {value: "myIotHubDeviceId"}, }, credentials: { deviceKeyType: {value:"str"}, deviceKey: {value: ""} } } ); }