Problem with my widgets led (I guess)

two things I did to (partially) solve that issue:

  1. put blynk.run() inbetween the functions so
void oneFunctionToLaunchThemAll(){
theDwarves();
theElves();
blynk.run();
theHumans();
}

The other is:

#define BLYNK_HEARTBEAT 60

often the ‘disconnects’ aren’t actual disconnects, its just that your functions take too long to hit the blynk.run() again which resets the blynk heartbeat (10s time out) resulting in a ‘disconnect’. Stretching that time gives your device to reset that heartbeat before it runs out.

1 Like