Hello,
I have a python script, which expects 2 arguments. MQTT Topic and Payload.
Using exec node, I am able to send the 'Payload', but I also need to send msg.topic to the script.
I have tried a lot, using msg.topic under the msg.payload option in exec node config, tried {{msg.topic}}, tried adding msg.topic directly in the command itself. Nothing has worked.
So, is there a way to send 2 arguments?
What I think can work is, use a node to merge msg.topic and msg.payload under msg.topic in a list/array. But change/join nodes have not been useful for these.
I have nearly zero knowledge of javascript.