Hello esp forum !
How is it possible to use extra components from esp-protocols repository from espressif with the vscode extension ?
There are paths options for other such as MDF etc but nothing to use other repositories.
Thanks for the help
Joel
Using esp-protocols with vscode extension
Re: Using esp-protocols with vscode extension
Hi Joel,
You can add any of the components in esp-protocols to your project from IDF component registry.
For example, mdns can be found here: https://components.espressif.com/compon ... essif/mdns
You can add it either by running the "idf.py add-dependency "espressif/mdns^1.2.0" command in your project directory, or manually by adding the following to your_project/main/idf_component.yml file:
(You can also add idf_component.yml to any other component directory, if the code which uses the external component is not under "main".)
---
Additionally, it is possible to create projects from examples of external components. This currently works only from the CLI.
Support for this in VS Code extension is in progress: https://github.com/espressif/vscode-esp ... n/pull/994
You can add any of the components in esp-protocols to your project from IDF component registry.
For example, mdns can be found here: https://components.espressif.com/compon ... essif/mdns
You can add it either by running the "idf.py add-dependency "espressif/mdns^1.2.0" command in your project directory, or manually by adding the following to your_project/main/idf_component.yml file:
Code: Select all
dependencies:
espressif/mdns: "^1.2.0"
---
Additionally, it is possible to create projects from examples of external components. This currently works only from the CLI.
Support for this in VS Code extension is in progress: https://github.com/espressif/vscode-esp ... n/pull/994
Who is online
Users browsing this forum: No registered users and 78 guests