Networking-for-Arduino / EthernetESP32

Alternative Ethernet library for the ESP32 platform
GNU Lesser General Public License v2.1
9 stars 3 forks source link

Network.h: No such file or directory #3

Open lehoangphuc86 opened 3 months ago

lehoangphuc86 commented 3 months ago

Hello,

I am trying to include this library and it is raising the below issue. It seems we are missing some header file from Arduino right?

I am using platformio on vscode

In file included from .pio/libdeps/esp32c3/EthernetESP32/src/EthernetESP32.h:2, from src/main.cpp:14: .pio/libdeps/esp32c3/EthernetESP32/src/Ethernet.h:24:10: fatal error: Network.h: No such file or directory

Thank you

JAndrassy commented 3 months ago

from README

EthernetESP32 requires ESP32 platform version 3 or higher.

lehoangphuc86 commented 3 months ago

@JAndrassy Thanks for reply. I am using this library inside platformio which has not supported ESP32 3.0 yet, may I know if you have tried this with platfformio before?

JAndrassy commented 3 months ago

no. I don't use and support platformio

Asyasyarif commented 1 month ago

I received the error message Network.h: No such file or directory while using PlatformIO.

Then, I changed the Espressif32 platform configuration platform.ini to the following:

[env:esp32dev]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip

no more errors.