mdns support

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
__deets__
Posts: 23
Joined: Sun Aug 20, 2017 4:50 pm

mdns support

Post by __deets__ » Sun May 24, 2020 2:02 pm

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

User avatar
tve
Posts: 216
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: mdns support

Post by tve » Sun May 24, 2020 10:04 pm

I haven't used mDNS, but I believe it simply responds with the hostname set on the STA interface + ".local".

fstengel
Posts: 55
Joined: Tue Apr 17, 2018 4:37 pm

Re: mdns support

Post by fstengel » Mon May 25, 2020 6:53 am

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.

User avatar
tve
Posts: 216
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: mdns support

Post by tve » Mon May 25, 2020 7:46 am


fstengel
Posts: 55
Joined: Tue Apr 17, 2018 4:37 pm

Re: mdns support

Post by fstengel » Mon May 25, 2020 8:39 am

Ouch. The file I had overlooked :oops: . Thanks for the info :D

__deets__
Posts: 23
Joined: Sun Aug 20, 2017 4:50 pm

Re: mdns support

Post by __deets__ » Thu May 28, 2020 5:30 pm

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.

Post Reply