How to set relative delays using blynk?

i want to set delays in the code. complete code have to be delay by a small time. but when i set delays it stops or i get unexpected output in timing. because i think when i set delay, wifi connection will lost and connecting wifi again??? so delay is too much

Use interval timers instead of delays…

http://docs.blynk.cc/#troubleshooting-delay

http://docs.blynk.cc/#blynk-firmware-blynktimer

1 Like

Use Blynk.timer timeout function. It’s like SimpleTimer and should work the same. Instructions on simpletimer use are on Arduino.cc

timer function works as timing from beginning nah?? i mean want to get the function exactly what delay does. i just wanted to delay everything for 5 seconds

Yes, that is possible with the timer. You can activate a function with a 5s delay, e.g. timer.setTimeout(5000, runThisFunctionAfterFiveSeconds);