# Node function repeating message before processing request

**URL:** <https://discourse.nodered.org/t/node-function-repeating-message-before-processing-request/30599>\
**Category:** General\
**Created:** [23 July 2020 10:32 UTC](https://discourse.nodered.org/t/node-function-repeating-message-before-processing-request/30599 "2020-07-23T10:32:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Post date:** [23 July 2020 10:32 UTC](https://discourse.nodered.org/t/node-function-repeating-message-before-processing-request/30599/1 "2020-07-23T10:32:15Z")

</div>

Hi all,

So I have a node reading a ping from a local ethernet connected device, I`m wanting to make a heart beat to this device so that when it doesnt ping it sends a reboot via a relay. Only issue I have at the moment is that when the pi responds a "false" triggering a relay , the reader reads another false in the time it takes to restart and set up hence creates a loop of relays, I need some way to have pings within 5 seconds but also able to read the first "false" reading it gets. Any way to do this?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 July 2020 10:46 UTC](https://discourse.nodered.org/t/node-function-repeating-message-before-processing-request/30599/2 "2020-07-23T10:46:51Z")

</div>

Have a look at the RBE node. You can configure it to only pass on changes, so it will never send more than one false (or true) in a row.

[Edit] how does this relate to [your other thread](https://discourse.nodered.org/t/ping-to-a-different-pi-via-nodered/30591), where you say you can't get the ping to work at all?

---

<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:** [21 September 2020 10:47 UTC](https://discourse.nodered.org/t/node-function-repeating-message-before-processing-request/30599/3 "2020-09-21T10:47:06Z")

</div>

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