From 609fc9181dd0b4aa5674cbb4a0f9d6521d6f8dd3 Mon Sep 17 00:00:00 2001 From: Simon Schmidt <pomminger@gmail.com> Date: Tue, 7 Sep 2021 10:58:49 +0200 Subject: [PATCH] mDNS --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 6504ddb..9a91dd7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,6 +9,7 @@ extern "C" { #include "user_interface.h" } // OTA & WEB +#include <ESP8266mDNS.h> #include "httpserver.h" #include "ota.h" #include "wifi_credentials.h" @@ -106,6 +107,10 @@ void setup() { httpServer.start_apps(); Serial.println("HTTP server started !"); + if (MDNS.begin("singleLED")) { + Serial.println("MDNS for singleLED started"); + } + os_timer_setfn(&timer1, timerCallback, &timer_flag); os_timer_arm(&timer1, 20, true); @@ -113,6 +118,7 @@ void setup() { " PW: " + String(wifi_data.PW)); } + void loop() { if (inter != 0u) { Serial.printf("interrupt\n");