Using esp-protocols with vscode extension

joel69100
Posts: 8
Joined: Sun Jun 07, 2020 1:21 pm

Using esp-protocols with vscode extension

Postby joel69100 » Tue Aug 08, 2023 4:31 pm

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

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Using esp-protocols with vscode extension

Postby ESP_igrr » Tue Aug 08, 2023 6:48 pm

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:

Code: Select all

dependencies:
  espressif/mdns: "^1.2.0"
(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

Who is online

Users browsing this forum: No registered users and 20 guests