[core] Use mDNS hostname as instance name by default (#32)

This commit is contained in:
Stroe Andrei Catalin
2022-10-15 17:39:54 +03:00
committed by GitHub
parent 9553ff66a3
commit a79a2d60d3

View File

@@ -38,6 +38,7 @@ static void mdnsStatusCallback(struct netif *netif, uint8_t result) {
}
bool mDNS::begin(const char *hostname) {
setInstanceName(hostname);
LT_DM(MDNS, "Starting (%s)", hostname);
#if LWIP_VERSION_MAJOR >= 2 && LWIP_VERSION_MINOR >= 1
mdns_resp_register_name_result_cb(mdnsStatusCallback);