node-red / cookbook.nodered.org

Node-RED Cookbook
http://cookbook.nodered.org
Apache License 2.0
84 stars 34 forks source link

Describe which 'topic' to set. #63

Closed ryoichi-obara closed 5 years ago

dceejay commented 5 years ago

I think the solution is currently correct in that it applies generally to whatever node you use to send in the data - i.e. you ned to set msg.topic. In the actual example given this is done by using an inject node - but you don't have to use an inject node to do this - so I think the docs are OK as-is.

ryoichi-obara commented 5 years ago

Thanks for your review. Of-course I know just need to set msg.topic. In this case, unexpectedly theres's two different topic, one is in MQTT node, the other is in Inject node. This docs belongs MQTT category, so generally speaking of topic reminds us to mention about something of MQTT.

So I modified docs, describe under example headings. How about this?

dceejay commented 5 years ago

Thanks

ryoichi-obara commented 5 years ago

Thank you too!