Hello everyone,
I just made my first Blynk project and I’m having a silly issue I haven’t been able to solve with the documentation and other topics on the matter. I’ve tested my code without the Blynk part and works perfectly.
My problem is that whenever I cut power to the ESP01, the code execution stops. If I power on the ESP01 again, no connection is established to the Blynk server and the code execution is still frozen. In a nutshell, I want to be able to:
- Execute all the code if the Arduino is not connected to the server or if connection is dropped, and
- Reconnect to Blynk server after connection is dropped for whatever reason.
Details as follows:
• Hardware: Arduino UNO + ESP-01[ESP8266] (Connection to server tested, working properly)
• Smartphone: iOS (Tested, shows Arduino connected)
• Blynk server: Local (Tested, working properly)
• Blynk Library version: 0.6.1
• Sketch: I will provide the Blynk nuts and bolts, void setup() and void loop() as everything else works properly:
void setup()
{
EspSerial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, ssid, pass, "192.168.100.195", 8080);
}
void loop()
{
Blynk.run();
}
Many thanks in advance!