I'm a novice at writing HE device drivers...
I'd like to implement some functionality in a driver that executes when a particular packet has not been seen for X seconds. X will be something like 3 or 5 seconds.
I see code fragments in driver implementations like:
Date date = new Date()
that seem to capture a timestamp when executed. So, it seems, I should be able to compare that to a previous time and only execute the code of interest when elapsed time exceeds the required time.
What can I do to have the variable "persist" across invocations of parse()? Should I do a sendEvent so that it is saved in an attribute?