True… however I only intended it to be used as a reference for the Blynk.config()
and reconnection option… the OP apparently just loaded the whole thing My mistake for not being clearer on which part of the code I was referring too
Instead of Blynk.begin()
…
Blynk.config(auth, server, port);
Blynk.connect();
See here: https://docs.blynk.cc/#blynk-firmware-configuration-blynkconfig
And then the bare minimum “check test” in the void loop()
if (Blynk.connected()) { // If connected run as normal
Blynk.run();
}
@vektobus Here is another sketch (which could have been found with some searching ) that I use for an old RC car conversion… Running on an UNO and ESP-01.
Note: there is NO “keep running without connection” code in this one (no need for my uses), so you would need to add that. But it does show a (very rudimentary) “fail safe” timer solution to shut off the motors.