[core] Use mDNS hostname as instance name by default (#32)
This commit is contained in:
committed by
GitHub
parent
9553ff66a3
commit
a79a2d60d3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user