Skip to content

Commit

Permalink
(Hopefully) add proper description and mac address as unique identifi…
Browse files Browse the repository at this point in the history
…er also for Arduino Due
  • Loading branch information
fredlcore committed Feb 8, 2025
1 parent f55c796 commit 7d5bb5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BSB_LAN/BSB_LAN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8071,7 +8071,10 @@ active_cmdtbl_size = sizeof(cmdtbl)/sizeof(cmdtbl[0]);
} else {
mdns.begin(Ethernet.localIP(), mDNS_hostname);
}
mdns.addServiceRecord("BSB-LAN web service._http", HTTPPort, MDNSServiceTCP);
char service_txt[25];
snprintf(service_txt, sizeof(service_txt), "mac=%s", macStr);
mdns.addServiceRecord("BSB-LAN._http", HTTPPort, MDNSServiceTCP, "description=BSB-LAN web service");
mdns.addServiceRecord("BSB-LAN._http", HTTPPort, MDNSServiceTCP, service_txt);
// TODO: Add text entry for MAC address to create unique MDNS record also for Arduino Due
#endif
printFmtToDebug("Starting MDNS service with hostname %s\r\n", mDNS_hostname);
Expand Down

0 comments on commit 7d5bb5f

Please sign in to comment.