Lab 36. Registering to all events

Expected completion time of this lab: 10 min.

  • on your IBM Cloud-based Node-RED, instance, start a flow which subscribes to all events. 
  • make sure you see the messages appear in the debug tab
  • modify the flow by inserting a function node with the following code:

    var count = flow.get('count')||0;
    count += 1
    msg.payload = count;
    return msg;
  • What does the function above do?

    Answer 1:

  • How many messages are published per minute to the broker, on that topic?

    Answer 2: