From 5a1447215ae5b2bc21508038f4030aa07c0f873a Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Sat, 6 May 2023 02:30:17 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=BA=20Fixed=20MDNS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fcc6890..54bdf6d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -83,8 +83,9 @@ void setupWiFi(){ display.display(); } } - MDNS.addService("http", "tcp", HTTP_PORT); - MDNS.begin(HOSTNAME); + if(MDNS.begin(HOSTNAME)){ + MDNS.addService("http", "tcp", HTTP_PORT); + } } void setupServer(){