mDNS does not work with ethernet
Posted: Mon Sep 23, 2019 3:57 pm
Hi,
mDNS does not work with ethernet.
I am using IDF version v3.0-dev-899-g3a271a4a-dirty.
"ping hostname" does not work.
Regards.
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.