mDNS does not work with ethernet.
I am using IDF version v3.0-dev-899-g3a271a4a-dirty.
Code: Select all
mdns_server_t * mdns = NULL;
esp_err_t err = mdns_init(TCPIP_ADAPTER_IF_ETH, &mdns);
if (err) {
printf("MDNS Init failed: %d\n", err);
return;
}
mdns_set_hostname(mdns, "hostname");
mdns_set_instance(mdns, "ESP32");
Regards.