[Solved] Double triple press , simple RF remote

Hi can anyone give me an example for something that will count how many times my MQTT > RF > RF remote been pressed?

so let's say in a time frame of two seconds, i press it twice, i will get an MQTT msg in Node, and i will be able to count them

it will be cool if every press will extend the delay (time frame of two seconds)

thanks for any help!

found this code ...
can anyone think of a way to make the delay reset for every press i get?

Marking this as solved the code is good , RF is shit

Talking to myself here hhh :slight_smile: