Skip to content

Commit

Permalink
Merge pull request #348 from bckp/patch-1
Browse files Browse the repository at this point in the history
Added support for MDNS discovery
  • Loading branch information
Blueforcer authored Oct 14, 2023
2 parents 9a64d7a + e0d73e9 commit 86091a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ServerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ void ServerManager_::setup()
return;
}

MDNS.addService("http", "tcp", 80);
MDNS.addService("awtrix", "tcp", 80);
MDNS.addServiceTxt("awtrix", "tcp", "id", uniqueID);
MDNS.addServiceTxt("awtrix", "tcp", "type", "awtrix_light");

configTzTime(NTP_TZ.c_str(), NTP_SERVER.c_str());
tm timeInfo;
getLocalTime(&timeInfo);
Expand Down

0 comments on commit 86091a1

Please sign in to comment.