# Payload change scan

**URL:** https://discourse.nodered.org/t/payload-change-scan/57353
**Category:** General
**Created:** [27 January 2022 16:32 UTC](https://discourse.nodered.org/t/payload-change-scan/57353 "2022-01-27T16:32:10Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)
#### Post date: [27 January 2022 16:32 UTC](https://discourse.nodered.org/t/payload-change-scan/57353/1 "2022-01-27T16:32:10Z")

</div>

Hi guys. I'm looking for a solution in which the value of payload is sent to the debug node if there's a change in value. Otherwise, nothing is sent to the debug node.

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [27 January 2022 16:34 UTC](https://discourse.nodered.org/t/payload-change-scan/57353/2 "2022-01-27T16:34:17Z")

</div>

Check the filter/rbe node, or the switch node set to `!= previous`

---

<div class="post-metadata">

### Author: ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)
#### Post date: [27 January 2022 16:35 UTC](https://discourse.nodered.org/t/payload-change-scan/57353/3 "2022-01-27T16:35:37Z")

</div>

Thank you

---

<div class="post-metadata">

### Author: ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)
#### Post date: [27 January 2022 17:35 UTC](https://discourse.nodered.org/t/payload-change-scan/57353/4 "2022-01-27T17:35:57Z")

</div>

Now I have to filter false payloads out. I'd like to have the payload values at the output If the payload value did not change over a period of time, e.g. on a 100 ms period or longer, otherwise nothing at the output, Can you please let me know how?

---

<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: [27 January 2022 22:00 UTC](https://discourse.nodered.org/t/payload-change-scan/57353/5 "2022-01-27T22:00:10Z")

</div>

You can do that with a Filter node followed by a Trigger node.

```auto
[{"id":"b3a5827c1d8e0c08","type":"rbe","z":"bdd7be38.d3b55","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":290,"y":2560,"wires":[["8846cd57dfd88dcf"]]},{"id":"8846cd57dfd88dcf","type":"trigger","z":"bdd7be38.d3b55","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"100","extend":true,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":460,"y":2560,"wires":[["03ae2eb3172f3f16"]]},{"id":"03ae2eb3172f3f16","type":"debug","z":"bdd7be38.d3b55","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":2560,"wires":[]}]

```

---

<div class="post-metadata">

### Author: ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)
#### Post date: [28 January 2022 15:58 UTC](https://discourse.nodered.org/t/payload-change-scan/57353/6 "2022-01-28T15:58:31Z")

</div>

Thank you so much

---

<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: [11 February 2022 15:58 UTC](https://discourse.nodered.org/t/payload-change-scan/57353/7 "2022-02-11T15:58:39Z")

</div>

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