[SOLVED] Best place for Blynk.run() in loop() - beginning or end?


I know I know, we place Blynk.run() in the loop() of our firmware, I get that.
But what is the preferred place? at the beginning of all my logic in loop(), or right at the end?
is there a preference?


Yes, the only thing in the loop has to be Blynk,run() and your timer. Other than that, remove all logic from the main loop and put it into functions! Call them using timers or Blynk buttons :slight_smile:

Hi, thanks for your response.
Now my question is this: is there a preference for where to place the Blynk.run() call?
doesn’t matter/before/after the call to timers->functions?

thanks again

In general it doesn’t matter.

1 Like