Search code examples
node-red

How to join multiple messages into just one message in Node-Red?


Node 1:

{
  topic: "cur_freq",
  payload: 600000
}

Node 2:

{
  topic: "min_freq",
  payload: 600000
}

Node 3:

{
  topic: "max_freq",
  payload: 1200000
}

In Node-Red, how to join these 3 messages (from three different nodes) in just one message, based on topic?

{
  payload: {
    "cur_freq": 600000
    "min_freq": 600000
    "max_freq": 1200000
  }
}

I've tried the Join node with these settings, but debug shows nothing:

Join node Flow


Solution

  • You haven't given the join node any completion criteria.

    You need to tell it to wait for 3 message parts.