Skip to content
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

Running idf.py reconfigure from PlatformIO #1157

Closed
kevinhikaruevans opened this issue Jul 26, 2023 · 2 comments
Closed

Running idf.py reconfigure from PlatformIO #1157

kevinhikaruevans opened this issue Jul 26, 2023 · 2 comments

Comments

@kevinhikaruevans
Copy link

kevinhikaruevans commented Jul 26, 2023

Is there a way of running idf.py reconfigure from PlatformIO's interface? Or perhaps an easy way of accessing idf.py?

I have some components that I would like to bring down from the ESP-IDF Component Manager/Registry https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-component-manager.html and it requires me to run idf.py reconfigure from my project's directory (or idf.py add-dependency "espressif/mdns^1.2.0"). I don't see an option to do this in the PIO UI. Is there something that I'm missing?

@valeros
Copy link
Member

valeros commented Jul 27, 2023

Hi @kevinhikaruevans ! There is no support for the idf.py utility as PlatformIO uses its own build tools. However, it should be possible to use IDF components. First, add that dependency to the src/idf_component.yml file (if it doesn't exist, create a new one) with the following content:

dependencies:
  espressif/mdns: ">=1.2.0"

Then clean and compile your project from scratch, the internal IDF build system will download that dependency and PlatformIO should pick up that new component automatically.

@kevinhikaruevans
Copy link
Author

Thanks! I understand now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants