It seems that the latest ESP-IDF provides the first taste of mDNS support. I tried to study the docs on mDNS in order to setup my ESP32 as an mDNS advertizer but couldn't get my mDNS browsers to see it. So next I tried the sample that can be found here:
https://github.com/espressif/esp-idf/tr ... ns_example
This sample sets up the ESP32 as both an advertizer and a browser. The browser component seems to work, but still no obvious luck in having external mDNS browsers see it. I tried two distinct browsers ...
1) avahi-browse -all running on Linux
and
2) https://hobbyistsoftware.com/bonjourbrowser running on Windows 10
Both could see my other mDNS components in my network (Cloud drive, Chromecast etc) ... but neither see the ESP32.
Has anyone gotten their ESP32s visible to mDNS browsers yet?
Advertizing through mDNS
Advertizing through mDNS
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Advertizing through mDNS
Can see it in zeroconf browser for android under _arduino and http server and samba share.
Re: Advertizing through mDNS
It looks like the mdns library does not add a PTR to your service to _services._dns-sd._udp.local
see https://developer.apple.com/library/con ... index.html
Looks like a bug!
Malte
see https://developer.apple.com/library/con ... index.html
Looks like a bug!
Malte
Re: Advertizing through mDNS
Any update on this? Should we create an issue about this?
-
- Posts: 9759
- Joined: Thu Nov 26, 2015 4:08 am
Re: Advertizing through mDNS
If you don't mind, I'd appreciate it. We mostly try to keep track of what people on the forums report, but if you report it on Gitlab we can track it better.
Re: Advertizing through mDNS
It may be that Mr negativekelvin has already fixed the issue ... there appears to be an open Pull Request ... see:
https://github.com/espressif/esp-idf/pull/340
There isn't much commentary about it but it "seems" to talk about what Mr Maltej was discussing.
https://github.com/espressif/esp-idf/pull/340
There isn't much commentary about it but it "seems" to talk about what Mr Maltej was discussing.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Advertizing through mDNS
The mdns component from the esp-idf SDK is missing a lot to be RFC 6762 compliant.
E.g. different query types or probing and announcing as described in section 8:
https://tools.ietf.org/html/rfc6762#section-8
Probably it would be best to port Apple's mDNSResponder to ESP32:
https://opensource.apple.com/source/mDNSResponder/
Best,
Malte
E.g. different query types or probing and announcing as described in section 8:
https://tools.ietf.org/html/rfc6762#section-8
Probably it would be best to port Apple's mDNSResponder to ESP32:
https://opensource.apple.com/source/mDNSResponder/
Best,
Malte
Re: Advertizing through mDNS
Yes it is leaving a lot out. Sometimes you just want smallest code barely enough to be functional.
Re: Advertizing through mDNS
Malte,
I'm also trying to get my mind around mDNS on ESP32 and having a lot of problems. I'm trying to "locate" an ESP32 that I believe I have setup for mDNS but can't locate it via avahi nor Bonjour. I have the feeling that you are the resident expert in this area. Do you have a write up on your discoveries? If not, would you be willing to work with me to learn what you learned and I'll have a bash at writing up stories to make it more consumable (assuming you have it working in some fashion).
Available of #ESP32 IRC or medium of choice.
Neil
I'm also trying to get my mind around mDNS on ESP32 and having a lot of problems. I'm trying to "locate" an ESP32 that I believe I have setup for mDNS but can't locate it via avahi nor Bonjour. I have the feeling that you are the resident expert in this area. Do you have a write up on your discoveries? If not, would you be willing to work with me to learn what you learned and I'll have a bash at writing up stories to make it more consumable (assuming you have it working in some fashion).
Available of #ESP32 IRC or medium of choice.
Neil
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Advertizing through mDNS
Do you have the latest IDF with the patch you linked above?
Who is online
Users browsing this forum: No registered users and 145 guests