Hello everyone, i have project that already working with esp8266 and w5500 ethernet connection. My question i how to run sketch without ethernet link? When i disconnect lan cable and turn on, the device didn’t start the sketch, when the cable is connected and turn on, everything works with local server. I want to run the sketch if my local server of blynk crashes.
Something like this:
void loop()
{
if (Ethernet.linkStatus() == LinkOFF) {
Serial.println("Link status: OFF");
without_internet();
}
else {
Blynk.run();
with_internet();
}
}
Thank you very much!!!