Ext configuration of Mindconnect Agent node #145
AlxLifanov
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
@AlxLifanov you can send the complete node configuration (including the secrets) as an input message to the node. This means that you can have a flow directly in node-red which can watch a folder and forward the configuration to the node once it was copied. After the configuration arrives the node will reconfigure itself and restart the flow. Below is the example how to send a managed configuration to the node. msg.payload ={
"name": "Managed Configuration",
"configtype": "SHARED_SECRET",
"agentconfig": {
"content": {
"baseUrl": "https://southgate.eu1.mindsphere.io",
"iat": "eyJ...Mkw",
"clientCredentialProfile": ["SHARED_SECRET"],
"clientId": "d...",
"tenant": "c..."
},
"expiration": "2018-11-15T17:31:35.000Z"
},
"privatekey": "",
"model": "",
"validate": true,
"validateevent": true,
"chunk": true,
"disablekeepalive": false,
"retry": "5",
"parallel": "7",
"asyncduration": "10",
"emitcontrol": true,
"datalakeonly": true,
"supressverbosity": true
}
return msg; |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings!
We need to make IOT2050 + Nodered + Mindconnect node to be onboarded by unqualified personnel on site.
Idea: we send a text file to the customer, which contains needed SHARED_SECRET. This file needs to be written to USB key to root folder. Nodered periodically checks for removable drive presence. If drive and file are present - credentials should be copied to Agent node.
Problem: SHARED_SECRET now is a constant and can be copied only via web interface. Is it possible to pass agent configuration programmaticaly from external source?
Beta Was this translation helpful? Give feedback.
All reactions