So currently the advertising is enabled/disabled by the S1 button press. I want to make it so the the advertising toggle happens by long pressing the S3 button.
Now I know that I'll have to use some kind of a timer, but don't know how. If someone could post the code snippet I'd greatly appreciate it.