khoih-prog/WebServer_WT32_ETH01

ARDUINO_EVENT_ETH_START not defined if using PlatformIO

khoih-prog opened this issue · 0 comments

Opened by @SurfGargano as EthernetWebServe issue 24


In the file webServer_WT32_ETH01_Impl.h there are some cases like
case ARDUINO_EVENT_ETH_START:
When I start the compilation via PlatformIO some errors are displayed that ARDUINO_EVENT_ETH_START (and other) not defined.
Has I include some other files ?

PIO is using ESP32 core v1.0.6 now, the current library version is using ESP32 core v2.0.0+ by default.

You have to either

  1. Using Arduino IDE and ESP32 core v2.0.1
  2. Using PIO and library version v1.2.0-. Read Important notes
  3. If using library version v1.3.0, add in your code,
// Uncomment to use ESP32 core v1.0.6-
#define USING_CORE_ESP32_CORE_V200_PLUS     false