-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't compile mDNS when using IDF 5.1 #275
Comments
Using mDNS with ESP IDF > 4.4 is not possible, because it (as in the C component) got moved to a separate repo, outside of the ESP IDF one. I haven't got yet to see how to restore support for it. Perhaps you can ask in the Matrix channel? |
Ok, that's unfortunate. I guess I'll downgrade for now, thank you for the fast reply though. Should I close this issue or leave it open until there's a way to use mDNS again? |
Leave it open. |
Workaround seems easy enough, just put [package.metadata.esp-idf-sys]
extra_components = [
{ component_dirs = [ "esp-protocols/components/mdns" ] }
] in your |
Closing, as support for the ESP-IDF component Manager was merged in mainline, and the next release of this crate should support the mDNS component for ESP IDF 5, as long as you include it in your project. |
For anyone still coming here from Google, the updated Cargo.toml snippet to add that worked for me was:
And the idf.py command to add the external component was:
|
Hi,
I'm currently trying to compile
esp-idf-svc
with mDNS support as I'd like to use it in my project.I'm unable to compile this crate with mdns enabled.
So far, I've tried to use
which fails with "Unable to resolve component mdns".
I also modified the
.cargo/config.toml
file to includerustflags = [ "--cfg", "espidf_time64", "--cfg", "esp_idf_comp_mdns_enabled"]
which provides we with error messages related to missing bindings to the mdns C code.
(e.g.
error[E0425]: cannot find function
mdns_query_srvin this scope
, originating in the esp-idf-svc crate src/mdns.rs).I also tried adding
CONFIG_ESP_IDF_COMP_MDNS_ENABLED=y
tosdkconfig.defaults
, but no luck so far.The project has been created using the esp-idf template (with std).
Am I doing something wrong or is using mDNS with IDF v5.1 not (yet) possible?
Additional files:
sdkconfig.defaults
:Cargo.toml
:.cargo/config.toml
The text was updated successfully, but these errors were encountered: