From 89dcbf27ae9ff9ad20443abb515577b4e36798ee Mon Sep 17 00:00:00 2001 From: Simon Schmidt Date: Tue, 7 Sep 2021 10:56:33 +0200 Subject: [PATCH] mDNS --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 700d7c3..ec5dc9f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,6 +9,7 @@ extern "C" { #include "user_interface.h" } // OTA & WEB +#include #include "httpserver.h" #include "ota.h" #include "wifi_credentials.h" @@ -105,6 +106,10 @@ void setup() { httpServer.start(); httpServer.start_apps(); Serial.println("HTTP server started !"); + + if (MDNS.begin("treppenlicht")) { + Serial.println("MDNS for treppenlicht started"); + } os_timer_setfn(&timer1, timerCallback, &timer_flag); os_timer_arm(&timer1, 20, true);