node-red-contrib-yield 1.0.2

Node-RED node to send multiple messages

npm install node-red-contrib-yield

This simple node sends messages passed from msg.payload separately down the flow. With this node, you can send multiple messages to the next node without having multiple outputs. The number of outputs is also dynamic.

You can turn this

before

into this:

before

Just pass in an array of messages as payload like shown in the flowing example:

msg.payload = [
  {
    topic: 'topic-1',
    payload: 'payload-1',
  },
  {
    topic: 'topic-2',
    payload: 'payload-2',
  },
  ...
]

Node Info

Version: 1.0.2
Updated 1 year, 3 months ago

Downloads

3 in the last day
12 in the last week
51 in the last month

Nodes

  • yield

Keywords

  • node-red

Maintainers

  • inoc603