Gunner
December 17, 2018, 8:27pm
2
ykilicaslan:
timer.setInterval(100L, ykilicaslanb); // röle çekim süresi
timer.setInterval(100L, ykilicaslanb1);// röle çekim süresi
timer.setInterval(100L, ykilicaslanb2);// röle çekim süresi
timer.setInterval(100L, ykilicaslanb3);// röle çekim süresi
timer.setInterval(500L, sensoryolla);//ısı ve nem sensor durumlari
timer.setInterval(100L, PIRval); timer.setInterval(100L, pir);
All of this 100ms functions are running fast, and trying to run at the exact same time, and bumping into the 500ms one every fifth iteration. That is all conspiring to causing your disconnections.
#12 - Timers simplified… perhaps…
Some have a difficult time understanding timers… and since this is a fundamental building block of Blynk… I buried this reference in the middle of this entire topic Well anyhow…
This is a “real world” timer example where i am using two timers to alternately turn ON and OFF an LED… yes, there are many ways to do this, but this example is all about timers.
The first timer will run it’s assigned function 500ms (1/2 second) after boo…