Mqtt question: topic in inject node vs properties (topic) in mqtt node

Hi,
I am playing around to connect to thingspeak via mqtt using the mqtt node.

image

Initially I send a payload with the appropriate topic in the inject node:


That did not work...

However, when I added the topic in the mqtt node's properties and just send the payload without the topic, then it works :
image

I would have thought that the topic would be passed on from the inject node to the mqtt node correctly in the first instance. On inspecting the debug node, the topic is passed on with "". Can some enlighten me on the difference and why?
Thanks,
Ken

Do you mean that debug shows msg.topic surrounded by quotes?
That's just the debug output - so that you can distinguish between "100" and 100

It works for me. Do you see an error or just nothing?

oops, my bad, all good now, thanks

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