Hi, I am doing my best to make a loop that sends an announce every 3 seconds (for instance).
But I can’t manage to stop the loop when it started.
Could someone tell me how to know when the loop is started and how to stop it ?
You have to define loopAnnounce outside of your function to access the stored interval. Right now, you store the reference in a local variable and throw it away as soon as the function is done.