Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only last message will pass (request) #11

Open
Barabba11 opened this issue Jun 4, 2020 · 0 comments
Open

Only last message will pass (request) #11

Barabba11 opened this issue Jun 4, 2020 · 0 comments

Comments

@Barabba11
Copy link

Barabba11 commented Jun 4, 2020

Hi! This node is really useful, but it miss an important and safe (for flow) option, let only the last message go out in a certain amount of time.
My situation is I'm driving a very delicated dimmer, actually I had cloned the TCP packets from the app on my phone and it's not really clear how many packets it can receive before crash (flood), it happened already (not big numbers, maybe only 3/4 packets had crashed it) and needed a boring/long reset procedure. For this reason I want to filter the packets incoming, and keep only the last one.

Actually for doing this I'm using a function with 2 outputs, the first object incoming sends a reset to output1, to the attached delay node set with 200ms, the output 2 sends the same input object. Every packet which will follow will empty the delay node from the previous object, only the last message will let de lealy to time out and output it.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant