I'm having a problem with blynk on a Saprkfun ESP32 The Thing Board. The problem is that after uploading the code everything works fine, but for some reason, after some time (it could be hours or minutes...) the device goes offline and I need to unplug it from the power source and plug it back in order for blynk to run again. I have never had the device online for more than a few hours...
I have already tried to different for loops, the simple on with just Blynk.run() command an a more complex one that checks if bool Blynk.connected is true or false. If it's true it simply does Blynk.run otherwise it does Blynk.connect.
My code right now is:
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth = "My token is here";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid = "Wifi SSID";
char pass = "Wifi Password.";
Blynk.begin(auth, ssid, pass);
isConnected = Blynk.connected();