Hi everyone.
I have a situation where i need to terminate a data stream after it has detected a long press (pressing a button for more than 1 second continuously without release).
Breaking down the process, it should be something like this:
Detect long press --> execute long press function --> terminate data --> wait until release (here, it basically doesnt do anything at all, but wait till its released and pressed again)
Does anyone know how I can do this?