firmware wip - add link to esp32 cam on image

This commit is contained in:
Marcus 2024-06-02 19:25:45 +02:00
parent 032cc05bb1
commit 9861bb17f7

View file

@ -328,11 +328,13 @@ void WEBroot() {
// when an ESP32-Cam IP is given, display picture from it // when an ESP32-Cam IP is given, display picture from it
if(strlen(Esp32CamIP) > 0) { if(strlen(Esp32CamIP) > 0) {
body += "<img class='centered' src='http://"; body += "<a href='http://";
body += Esp32CamIP;
body += "' target='_blank'><img class='centered' src='http://";
body += Esp32CamIP; body += Esp32CamIP;
body += "/capture' alt='Image capture from ESP32CAM at "; body += "/capture' alt='Image capture from ESP32CAM at ";
body += Esp32CamIP; body += Esp32CamIP;
body += "'>\n<br>\n"; body += "'></a>\n<br>\n";
} }
body += "Grow started: "; body += "Grow started: ";