# Check if data is still being send

**URL:** <https://discourse.nodered.org/t/check-if-data-is-still-being-send/65324>\
**Category:** General\
**Created:** [19 July 2022 13:50 UTC](https://discourse.nodered.org/t/check-if-data-is-still-being-send/65324 "2022-07-19T13:50:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [19 July 2022 13:50 UTC](https://discourse.nodered.org/t/check-if-data-is-still-being-send/65324/1 "2022-07-19T13:50:06Z")

</div>

Hi all 👋 👋

I am trying to create a flow where it checks for data every single time from an inject node. For example, This is the example flow where it will continuously inject data.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/c/dc0a4fdf205635ed7a39e12d162238cbd97d793f.png)

But once one of them stops sending data or injecting for more than 5 seconds , it will trigger and give me and output that says which node fails or at the debug node it will output "Faulty" . Is there a simple or easier way to this function in node red?? if so please guide me

Thanks for the help if possible! ☺ ☺

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [19 July 2022 14:02 UTC](https://discourse.nodered.org/t/check-if-data-is-still-being-send/65324/2 "2022-07-19T14:02:02Z")

</div>

You can set a different msg.topic for each of the inject nodes. They will then be treated as individual streams.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [19 July 2022 14:22 UTC](https://discourse.nodered.org/t/check-if-data-is-still-being-send/65324/3 "2022-07-19T14:22:43Z")

</div>

Something like this:

```auto
[
    {
        "id": "596128453f0016d1",
        "type": "inject",
        "z": "815093ee06b3ca8a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "one",
        "payload": "",
        "payloadType": "date",
        "x": 160,
        "y": 80,
        "wires": [
            [
                "af82aeaf606832e4",
                "5b805670b897d9e0"
            ]
        ]
    },
    {
        "id": "329ecd3f4b50cb8b",
        "type": "inject",
        "z": "815093ee06b3ca8a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "two",
        "payload": "",
        "payloadType": "date",
        "x": 150,
        "y": 140,
        "wires": [
            [
                "af82aeaf606832e4",
                "5b805670b897d9e0"
            ]
        ]
    },
    {
        "id": "af82aeaf606832e4",
        "type": "trigger",
        "z": "815093ee06b3ca8a",
        "name": "",
        "op1": "",
        "op2": "fail",
        "op1type": "nul",
        "op2type": "str",
        "duration": "5",
        "extend": true,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "topic",
        "topic": "topic",
        "outputs": 2,
        "x": 400,
        "y": 180,
        "wires": [
            [
                "5b805670b897d9e0"
            ],
            [
                "8df68fb32e9336e7"
            ]
        ]
    },
    {
        "id": "5b805670b897d9e0",
        "type": "debug",
        "z": "815093ee06b3ca8a",
        "name": "debug 5",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 600,
        "y": 80,
        "wires": []
    },
    {
        "id": "8df68fb32e9336e7",
        "type": "debug",
        "z": "815093ee06b3ca8a",
        "name": "debug 6",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload &\" \"& topic",
        "targetType": "jsonata",
        "statusVal": "",
        "statusType": "auto",
        "x": 620,
        "y": 180,
        "wires": []
    }
]

```

---

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [19 July 2022 14:26 UTC](https://discourse.nodered.org/t/check-if-data-is-still-being-send/65324/4 "2022-07-19T14:26:48Z")

</div>

> [@ghayne](#):
>
> ```auto
> [
> {
> "id": "596128453f0016d1",
> "type": "inject",
> "z": "815093ee06b3ca8a",
> "name": "",
> "props": [
> {
> "p": "payload"
> },
> {
> "p": "topic",
> "vt": "str"
> }
> ],
> "repeat": "",
> "crontab": "",
> "once": false,
> "onceDelay": 0.1,
> "topic": "one",
> "payload": "",
> "payloadType": "date",
> "x": 160,
> "y": 80,
> "wires": [
> [
> "af82aeaf606832e4",
> "5b805670b897d9e0"
> ]
> ]
> },
> {
> "id": "329ecd3f4b50cb8b",
> "type": "inject",
> "z": "815093ee06b3ca8a",
> "name": "",
> "props": [
> {
> "p": "payload"
> },
> {
> "p": "topic",
> "vt": "str"
> }
> ],
> "repeat": "",
> "crontab": "",
> "once": false,
> "onceDelay": 0.1,
> "topic": "two",
> "payload": "",
> "payloadType": "date",
> "x": 150,
> "y": 140,
> "wires": [
> [
> "af82aeaf606832e4",
> "5b805670b897d9e0"
> ]
> ]
> },
> {
> "id": "af82aeaf606832e4",
> "type": "trigger",
> "z": "815093ee06b3ca8a",
> "name": "",
> "op1": "",
> "op2": "fail",
> "op1type": "nul",
> "op2type": "str",
> "duration": "5",
> "extend": true,
> "overrideDelay": false,
> "units": "s",
> "reset": "",
> "bytopic": "topic",
> "topic": "topic",
> "outputs": 2,
> "x": 400,
> "y": 180,
> "wires": [
> [
> "5b805670b897d9e0"
> ],
> [
> "8df68fb32e9336e7"
> ]
> ]
> },
> {
> "id": "5b805670b897d9e0",
> "type": "debug",
> "z": "815093ee06b3ca8a",
> "name": "debug 5",
> "active": true,
> "tosidebar": true,
> "console": false,
> "tostatus": false,
> "complete": "false",
> "statusVal": "",
> "statusType": "auto",
> "x": 600,
> "y": 80,
> "wires": []
> },
> {
> "id": "8df68fb32e9336e7",
> "type": "debug",
> "z": "815093ee06b3ca8a",
> "name": "debug 6",
> "active": true,
> "tosidebar": true,
> "console": false,
> "tostatus": false,
> "complete": "payload &\" \"& topic",
> "targetType": "jsonata",
> "statusVal": "",
> "statusType": "auto",
> "x": 620,
> "y": 180,
> "wires": []
> }
> ]
> 
> ```

Hello @ghayne,

Thanks for the Solution. For trigger node, only able to have 2 outputs, so is there a way that can check up to 10 Inject nodes? ☺

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [19 July 2022 14:28 UTC](https://discourse.nodered.org/t/check-if-data-is-still-being-send/65324/5 "2022-07-19T14:28:30Z")

</div>

Just give each inject node a different topic, it will work for more than 2 inputs, this was only to demonstrate.

---

<div class="post-metadata">

**Author:** ![Kaij3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kaij3/32/60268_2.png) [@Kaij3](https://discourse.nodered.org/u/Kaij3)\
**Post date:** [19 July 2022 14:29 UTC](https://discourse.nodered.org/t/check-if-data-is-still-being-send/65324/6 "2022-07-19T14:29:21Z")

</div>

@ghayne i see , let me test it out! Thank you for your solution and reply!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [17 September 2022 14:29 UTC](https://discourse.nodered.org/t/check-if-data-is-still-being-send/65324/7 "2022-09-17T14:29:32Z")

</div>

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