IDE / Tooling
Arduino (IDE/CLI)
What happened?
The code ist not compiling unter ESP Home using
esp32:
board: adafruit_feather_esp32s3
framework:
type: arduino
It ist trying to use the NetworkInterface.h header on the platform which is not available.
Since the intend is “include NetworkInterface.h only when using ESP‑IDF ≥ 5 and NOT Arduino,” please modify the check as follows:
#include "esp_idf_version.h"
#if (ESP_IDF_VERSION_MAJOR >= 5) && !defined(ARDUINO)
#include <NetworkInterface.h>
#endif
#ifdef ARDUINO
#include <esp32-hal.h>
#include <esp32-hal-log.h>
#endif
logs_hcpbridge_compile.txt
Stack Trace
logs_hcpbridge_compile.txt
Minimal Reproductible Example (MRE)
See Error log
I confirm that:
IDE / Tooling
Arduino (IDE/CLI)
What happened?
The code ist not compiling unter ESP Home using
esp32:
board: adafruit_feather_esp32s3
framework:
type: arduino
It ist trying to use the NetworkInterface.h header on the platform which is not available.
Since the intend is “include NetworkInterface.h only when using ESP‑IDF ≥ 5 and NOT Arduino,” please modify the check as follows:
#include "esp_idf_version.h"
#if (ESP_IDF_VERSION_MAJOR >= 5) && !defined(ARDUINO)
#include <NetworkInterface.h>
#endif
#ifdef ARDUINO
#include <esp32-hal.h>
#include <esp32-hal-log.h>
#endif
logs_hcpbridge_compile.txt
Stack Trace
logs_hcpbridge_compile.txt
Minimal Reproductible Example (MRE)
See Error log
I confirm that: