diff --git a/README.md b/README.md index 4077f76..d22d416 100644 --- a/README.md +++ b/README.md @@ -153,4 +153,3 @@ V4 * OSD * Temperature/humidity/pressure sensor support (bme20,dht11) You can check the [enhancement list](https://github.com/easytarget/esp32-cam-webserver/issues?q=is%3Aissue+label%3Aenhancement) (past and present), and add any thoughts you may have there. - diff --git a/esp32-cam-webserver.ino b/esp32-cam-webserver.ino index 81644db..7151534 100644 --- a/esp32-cam-webserver.ino +++ b/esp32-cam-webserver.ino @@ -6,6 +6,7 @@ #include #include "src/parsebytes.h" #include "time.h" +#include /* This sketch is a extension/expansion/reork of the 'official' ESP32 Camera example @@ -714,8 +715,17 @@ void setup() { ArduinoOTA.begin(); } else { Serial.println("OTA is disabled"); + + if (!MDNS.begin(myName)) { + Serial.println("Error setting up MDNS responder!"); + } + Serial.println("mDNS responder started"); } + //MDNS Config -- note that if OTA is NOT enabled this needs prior steps! + MDNS.addService("http", "tcp", 80); + Serial.println("Added HTTP service to MDNS server"); + // Set time via NTP server when enabled if (haveTime) { Serial.print("Time: "); diff --git a/index_other.h b/index_other.h index 409d8d4..6e8a284 100644 --- a/index_other.h +++ b/index_other.h @@ -36,11 +36,11 @@ const uint8_t index_simple_html[] = R"=====(