esp_netif_init();

idahowalker
Posts: 166
Joined: Wed Aug 01, 2018 12:06 pm

esp_netif_init();

Postby idahowalker » Wed Mar 03, 2021 1:40 pm

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

lbernstone
Posts: 828
Joined: Mon Jul 22, 2019 3:20 pm

Re: esp_netif_init();

Postby lbernstone » Wed Mar 03, 2021 3:14 pm

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

Who is online

Users browsing this forum: No registered users and 97 guests