I’m working on an esp32 project in c based on esp-idf and I would like to integrate mdns component. I don’t know what is my mistake but the mdns example project doesn’t work for me. I can’t see the added services with mdns scanner, and i cant ping the device with hostname only with ip addr. Can anyone test it is ok with idf v3.1? I tried it with wifi and ethernet on my custom board but neither works.
Thanks
T
mDNS does not work
Re: mDNS does not work
I don't know if its fixed yet but the following may be relevant.
viewtopic.php?f=2&t=6166
If you have to fix please let me know, will save me some typing!
viewtopic.php?f=2&t=6166
If you have to fix please let me know, will save me some typing!
& I also believe that IDF CAN should be fixed.
Re: mDNS does not work
Hello,
I'm experiencing similar problems with the mdns example provided by ESP-IDF on Wrower-Kit.
I got mdns responding to requests for 2-3 min and after that it stops working. Pinging on the ip address continues to work fine.
A restart brings everything to life for another few minutes.
Is there any conclusion to this issue? I have also checked the other post but I couldn't find a resolution there neither.
I'm experiencing similar problems with the mdns example provided by ESP-IDF on Wrower-Kit.
I got mdns responding to requests for 2-3 min and after that it stops working. Pinging on the ip address continues to work fine.
A restart brings everything to life for another few minutes.
Is there any conclusion to this issue? I have also checked the other post but I couldn't find a resolution there neither.
-
- Posts: 69
- Joined: Thu Nov 01, 2018 8:32 am
Re: mDNS does not work
Hello
Are you running the mdns example from release3.1? No modification, default configuration (besides the wifi credentials)?
This should work normally and indeed it does in my environment. I can browse for advertised services (checked with avahi on linux and dns-sd on macos) as well as resolve published service by avahi/bonjour.
Although some race conditions/bugs have been identified in current master (some will be backported), none of them resemble the symptoms of mdns stopped working after some time. We have seen an issue when network configuration changed, is you connection stable? Please share your commit-id, so I can test the exact version you use. Thanks,
Are you running the mdns example from release3.1? No modification, default configuration (besides the wifi credentials)?
This should work normally and indeed it does in my environment. I can browse for advertised services (checked with avahi on linux and dns-sd on macos) as well as resolve published service by avahi/bonjour.
Although some race conditions/bugs have been identified in current master (some will be backported), none of them resemble the symptoms of mdns stopped working after some time. We have seen an issue when network configuration changed, is you connection stable? Please share your commit-id, so I can test the exact version you use. Thanks,
Re: mDNS does not work
Hello,
I compiled again against a clean IDF release3.1 copy and it now seems to work fine.
Many thanks for the hints!
I compiled again against a clean IDF release3.1 copy and it now seems to work fine.
Many thanks for the hints!
Who is online
Users browsing this forum: Baidu [Spider] and 123 guests