ESP-IDF can't find Arduino components
Posted: Fri Sep 17, 2021 4:29 pm
Hi
I have installed ESP-IDF addon on VsCode.
Then I select ESP-IDF create new project.
VsCode show a form asking for project name, location etc.
After filling the form I click on "chose template"
I select Extensions and select "arduino-as-component"
When the project is created I follow this instruction: https://docs.espressif.com/projects/ard ... onent.html
As I have said in another thread,, idf.py menuconfig don't work form me.
After setup is finished I compile my newly created project.
It compiles with a minor error that is easy to fix.
I slightly modifies the code so it looks like this.
Then I compile again and get the following error
So,, which "step" am I missing ??? (As far I know, WiFi should be a valid component)
I have installed ESP-IDF addon on VsCode.
Then I select ESP-IDF create new project.
VsCode show a form asking for project name, location etc.
After filling the form I click on "chose template"
I select Extensions and select "arduino-as-component"
When the project is created I follow this instruction: https://docs.espressif.com/projects/ard ... onent.html
As I have said in another thread,, idf.py menuconfig don't work form me.
After setup is finished I compile my newly created project.
It compiles with a minor error that is easy to fix.
I slightly modifies the code so it looks like this.
Code: Select all
#include "Arduino.h"
#include "WiFi.h"
static WiFi wifi ;
extern "C" void app_main()
{
initArduino();
pinMode(4, OUTPUT);
digitalWrite(4, HIGH);
// Do your own thing
}
Code: Select all
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/main.cpp.obj
...
...
...
../main/main.cpp
../main/main.cpp:4:8: error: 'WiFi' does not name a type
static WiFi wifi ;
So,, which "step" am I missing ??? (As far I know, WiFi should be a valid component)