Gunner
March 21, 2019, 9:46pm
10
Anakin:
timer.setInterval(60000L, SendToThingspeak); // envia dato cada minuto a thingspeak
timer.setInterval(30000L, blynk); //timer will run every 30 sec a blynk
timer.setInterval(20000L, check_1); //timer will run every 20 sec
timer.setInterval(10000L, check_2); //timer will run every 10 sec
You need to stager these… the way they are some or all will converge (trying to run their respective functions at the exact same time) every 20, 60 seconds at least.
With a timeout timer… for an example of such use…
#24 - Timed Button Widget
Just cuz it keeps getting asked for It is an improved & simplified version of my Latch & indicator example in my #12 - Timers Simplified post above.
Set your vPin, dPin and timeout accordingly… And exchange the digitalWrite() for whatever you want to happen for the timed duration
int latchButton;
int latchFlag;
//===== Timeed latching button =====
BLYNK_WRITE(vPin) { // Button Widget set as switch
latchButton = param.asInt();
if …
1 Like