# If 10mp does not arrive payload

**URL:** <https://discourse.nodered.org/t/if-10mp-does-not-arrive-payload/63712>\
**Category:** General\
**Tags:** function-node\
**Created:** [10 June 2022 09:53 UTC](https://discourse.nodered.org/t/if-10mp-does-not-arrive-payload/63712 "2022-06-10T09:53:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![azxo1](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@azxo1](https://discourse.nodered.org/u/azxo1)\
**Post date:** [10 June 2022 09:53 UTC](https://discourse.nodered.org/t/if-10mp-does-not-arrive-payload/63712/1 "2022-06-10T09:53:22Z")

</div>

Hello! I would like to test a feature that if no payload is received for 10 seconds, then .... code  
(so if nothing comes from the mqtt in flow)  
How to do this? (sorry, I still don't speak English)

---

<div class="post-metadata">

**Author:** ![mickym2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickym2/32/36128_2.png) [@mickym2](https://discourse.nodered.org/u/mickym2)\
**Post date:** [10 June 2022 11:57 UTC](https://discourse.nodered.org/t/if-10mp-does-not-arrive-payload/63712/2 "2022-06-10T11:57:10Z")

</div>

Use a trigger node. The node has to be triggered once and you can specify that no message is sent at start. Then specify that a message is sent after 10 seconds. Switch on the option that the time is prolonged with each new message. Specify a message you want to send after the 10s. The result is that the message is sent when no message arrives within 10s.

---

<div class="post-metadata">

**Author:** ![azxo1](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@azxo1](https://discourse.nodered.org/u/azxo1)\
**Post date:** [10 June 2022 12:29 UTC](https://discourse.nodered.org/t/if-10mp-does-not-arrive-payload/63712/3 "2022-06-10T12:29:09Z")

</div>

I am a very beginner, could you give an example of a flow?

---

<div class="post-metadata">

**Author:** ![mickym2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickym2/32/36128_2.png) [@mickym2](https://discourse.nodered.org/u/mickym2)\
**Post date:** [10 June 2022 13:15 UTC](https://discourse.nodered.org/t/if-10mp-does-not-arrive-payload/63712/4 "2022-06-10T13:15:17Z")

</div>

```auto
[
    {
        "id": "cabdb88e34d8c7a6",
        "type": "mqtt in",
        "z": "4735369af5996aeb",
        "name": "",
        "topic": "",
        "qos": "2",
        "datatype": "auto",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 370,
        "y": 1300,
        "wires": [
            [
                "29f08731b067e931"
            ]
        ]
    },
    {
        "id": "29f08731b067e931",
        "type": "trigger",
        "z": "4735369af5996aeb",
        "name": "",
        "op1": "",
        "op2": "true",
        "op1type": "nul",
        "op2type": "bool",
        "duration": "10",
        "extend": true,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 530,
        "y": 1300,
        "wires": [
            []
        ]
    }
]

```

---

<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:** [9 August 2022 13:15 UTC](https://discourse.nodered.org/t/if-10mp-does-not-arrive-payload/63712/5 "2022-08-09T13:15:33Z")

</div>

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