Is it because you are not storing the timer handle? see my previous posted example -
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Javascript clearInterval in if statement | 6 | 474 | 4 November 2022 | |
| Interval in IF-loop is 'deaf' for injecting input | 8 | 558 | 15 July 2020 | |
| How to convert to a function | 92 | 5242 | 4 January 2019 | |
| Where to store handle of setInterval? | 5 | 613 | 23 November 2021 | |
| Start (setinterval) / stop (clearinterval) depending on msg.payload | 7 | 358 | 10 October 2022 |