Since ESP-IDF v5, mDNS has been moved from built-in library to component library.
I need to use the following command to install it.
This works fine in VSC using Espressifs ESP-IDF extension…
idf.py add-dependency “espressif/mdns^1.0.7”
Since we dont have idf.py to use, how do we do it ?
I believe it’s still a generic IDF component, so the instructions here should be relevant. In a nutshell, create a new folder components in the root of your project (near platformio.ini) and copy the mdns component to that folder directly from the repository esp-protocols/components/mdns at master · espressif/esp-protocols · GitHub
Just tried it, and could not get it to compile.
Maybe you can create a new project and give it a try.
Be sure to use platform = espressif32@6.0.0, if you do it.
Well…
I get very strange behavior when having two versions of IDF on both my system at home and at work.
Using platform = espressif32@5.3.0 and platform = espressif32@6.0.0
Most of the time it causes compile issues for new projects. When it does this the only solution I have found is to delete my .platformio folder and start again.