Page 1 of 1

esp_netif_init();

Posted: Wed Mar 03, 2021 1:40 pm
by idahowalker
How does the esp_netif.h library get included in the Arduino IDE?

This

Code: Select all

extern "C"
{
#include "esp_netif.h"
}
or this

Code: Select all

#include "esp_netif.h"
produces this error:

Code: Select all

esp_netif.h: No such file or directory

Re: esp_netif_init();

Posted: Wed Mar 03, 2021 3:14 pm
by lbernstone
arduino-esp32 1.0.5 is built on IDF 3.3. There is an option in the lower left corner of the idf docs to choose the version. This will help you identify what functions are available. Learning to use grep would help even more.
If you want to use IDF 4 functionality, there is an experimental branch. Here's installation instructions. https://learn.adafruit.com/adafruit-met ... -ide-setup