Create configuration node instance from within different node

I am currently working on nodes for one of my projects. All of them using a mqtt connection, so the idea was to have a common configuration node the way it is done in the build in mqtt node. However since the settings of the mqtt node are already clear at build time and there will always only be one config node for all my nodes I would perfer not to require the user to set the config node in the nodes settings the way it is done for the build in mqtt node. So I would like to:

  • check whether a mqtt config node with the correct config already exists
  • when it exists use it
  • when it does not exist yet automatically create it from within my node and then use it

However I did not understand how I can create the node instance from inside my node. Does anyone here know how to achieve this?

Thanks in advance

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.