I don't know what is happening or why I am doing this/these things.
I am trying to get things working and when I rationalise it down to a small flow and try to test things: it gets nasty.
What exactly does a change
node allow?
Originally I was smitten with the function
node and constructing messages as I needed them.
Then one day I had explained how the change
node works and how it can set/change message properties.
But can it? (Dramatic - and probably a bit sarcastic - music)
This is the test flow:
[{"id":"3ec09b8a.1278d4","type":"inject","z":"184dc884.7aba5f","name":"","topic":"","payload":"blah","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":3610,"wires":[["1c72b687.d72189","bec8c490.70c218"]]},{"id":"bec8c490.70c218","type":"change","z":"184dc884.7aba5f","name":"","rules":[{"t":"set","p":"topic.part1","pt":"msg","to":"extended topic","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":3660,"wires":[["c3dc56fb.cc28e"]]},{"id":"c3dc56fb.cc28e","type":"debug","z":"184dc884.7aba5f","name":"Extra","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":530,"y":3660,"wires":[]}]
I want to construct a message topic of/being:
msg.topic.part1
and set it to "Extended topic".
It doesn't work.
Is it I am expecting too much of the node?
(I have to now sit down and re-write some code to test something and then when that is resolved I may have to then apply the greater changes to a lot of stuff.)