Page 1 of 1

mdns support

Posted: Sun May 24, 2020 2:02 pm
by __deets__
Hi,

I'm aware of the existing discussions about mDNS in this forum (e.g. viewtopic.php?t=3027) - but this is not about 3rd-party mDNS support.

I took a look into the ESP32 port and found this: https://github.com/micropython/micropyt ... ork.c#L156

This suggest the internal MDNS-implementation set up, but then I don't find anything utilizing or offering an API for it. Any pointers here?

Thanks,

D

Re: mdns support

Posted: Sun May 24, 2020 10:04 pm
by tve
I haven't used mDNS, but I believe it simply responds with the hostname set on the STA interface + ".local".

Re: mdns support

Posted: Mon May 25, 2020 6:53 am
by fstengel
Interesting,

However I'm not sure that this portion of code is compiled. I do not see where MICROPY_HW_ENABLE_MDNS_RESPONDER is being defined if at all.

Re: mdns support

Posted: Mon May 25, 2020 7:46 am
by tve

Re: mdns support

Posted: Mon May 25, 2020 8:39 am
by fstengel
Ouch. The file I had overlooked :oops: . Thanks for the info :D

Re: mdns support

Posted: Thu May 28, 2020 5:30 pm
by __deets__
But how can I locate the device then? I know how to register and look for concrete services (e.g. ssh) via avahi-browse etc, but I don't find the ESP even though it's on the same network.