Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unwanted parallel behaviour? #14

Open
jeburkha opened this issue Mar 7, 2022 · 0 comments
Open

Unwanted parallel behaviour? #14

jeburkha opened this issue Mar 7, 2022 · 0 comments

Comments

@jeburkha
Copy link

jeburkha commented Mar 7, 2022

Yes, I know, Javascript is single threaded, but I have a strange issue:
I wanted to detect when an important battery-operated sensor does not report for more than 2 hours. Therefore, I set a countdown to 2 hours. Each time the sensor delivers a value, the countdown is retriggered.
However, if there is no value for 2 hours, the countdown starts an alarm. This night I have now received 3 alarm messages only 3 minutes apart. So it seems that the retriggering did not work and 3 countdowns ran in parallel.
Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant