Hello,
I like to change the variable name during run mode.
If I understand the documentation right, there is a possibility
Quote of the documentation:
"There is an possible to override the node configuration. You can add an property config to the message object. Not all configuration properties need to be overridden.
*** config.varName
: (string) override the variable name**
-
config.varType
: (string) override the variable type -
config.varSize
: (integer) the length on RAW and STRING type -
config.timezone
: (string) only on date and time type 'TO_LOCAL' or 'UNCHANGED' -
config.inProperty
: (string) the property for the outvalue -
config.useInputMsg
: (bool) the input message will be used to build the out message or an new message will be build. -
config.topic
: (string) the topic being checked against the message topic. It can be '' to delete an topic."
So far I have this - but it is not working (the variable name is not changing):
[{"id":"35c5b282.47cf2e","type":"tab","label":"Ăśbungen","disabled":false,"info":""},{"id":"2d687142.4e1c6e","type":"debug","z":"35c5b282.47cf2e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":890,"y":140,"wires":[]},{"id":"56f546c8.125f18","type":"ADS In","z":"35c5b282.47cf2e","name":"","datasource":"d6fbcc42.bcca8","varName":".RolloFunktionStatus_NodeRed[1]","varTyp":"INT","inValue":"payload","varSize":"","useInputMsg":false,"timezone":"UNCHANGED","topic":"","x":640,"y":140,"wires":[["2d687142.4e1c6e"]]},{"id":"beeedd8b.28c0c","type":"inject","z":"35c5b282.47cf2e","name":"","topic":"","payload":"config.varName:(.RolloFunktionStatus_NodeRed[3])","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":400,"y":140,"wires":[["56f546c8.125f18","8dc752cc.2bb3f"]]},{"id":"8dc752cc.2bb3f","type":"debug","z":"35c5b282.47cf2e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":590,"y":220,"wires":[]},{"id":"d6fbcc42.bcca8","type":"ads-connection","z":"","host":"192.168.178.11","amsNetIdTarget":"5.36.137.117.1.1","amsNetIdSource":"192.168.178.47.1.1","port":"48898","amsPortSource":"32905","amsPortTarget":"801","adsTimeout":"500"}]
What is the syntax to program this.
Please a EASY answer, best with a example - I'm a complete newbie!!
Thanks in advance for your support!!