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 | 7 | 466 | 4 November 2022 | |
| Interval in IF-loop is 'deaf' for injecting input | 9 | 545 | 29 July 2020 | |
| How to convert to a function | 92 | 5187 | 4 January 2019 | |
| Where to store handle of setInterval? | 6 | 595 | 22 January 2022 | |
| Start (setinterval) / stop (clearinterval) depending on msg.payload | 8 | 355 | 24 October 2022 |