Skip to content

Only last message will pass (request) #11

@Barabba11

Description

@Barabba11

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions