AsyncTCP not compiling on ESPHome with Arduino Framework #85
alexanderschanz10-netizen
started this conversation in
Support
Replies: 1 comment
-
@alexanderschanz10-netizen please open a pr ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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:
Beta Was this translation helpful? Give feedback.
All reactions