Closed pinarruiz closed 1 month ago
Digging a bit deeper, i found that the ~/.platformio/packages/framework-arduinoespressif32/libraries
has this directories:
ArduinoOTA
AsyncUDP
BLE
BluetoothSerial
DNSServer
EEPROM
ESP32
ESPmDNS
Ethernet
FFat
FS
HTTPClient
HTTPUpdate
HTTPUpdateServer
I2S
Insights
LittleFS
NetBIOS
Preferences
RainMaker
SD
SD_MMC
SimpleBLE
SPI
SPIFFS
Ticker
Update
USB
WebServer
WiFi
WiFiClientSecure
WiFiProv
Wire
While https://github.com/espressif/arduino-esp32/tree/master/libraries has some others:
ArduinoOTA
AsyncUDP
BLE
BluetoothSerial
DNSServer
EEPROM
ESP32
ESP_I2S
ESP_NOW
ESP_SR
ESPmDNS
Ethernet
FFat
FS
HTTPClient
HTTPUpdate
HTTPUpdateServer
Insights
LittleFS
NetBIOS
Network
NetworkClientSecure
PPP
Preferences
RainMaker
SD
SD_MMC
SPI
SPIFFS
SimpleBLE
TFLiteMicro
Ticker
USB
Update
WebServer
WiFi
WiFiProv
Wire
It seems that the Network
library is where the files that I am missing are.
So i just figured it out, the Arduino IDE told me i had an update, me, not noticing the new version I updated blindly, to an rc version, so i guess thats on me.
I recently got a
WT32-ETH01
and was testing the eth port on an Arduino IDE example, and it went all good, the example is https://github.com/espressif/arduino-esp32/blob/master/libraries/Ethernet/examples/ETH_LAN8720/ETH_LAN8720.ino with some values tweaked for theWT32-ETH01
(as can be seen below on the code provided).The thing is that it compiles with no issues and upon connecting an ethernet cable it can also make an http get request to google. But when the code is used in PlatformIO now it does not compile, i attach some references, if more is needed please let me know. As you can see the program provided has some modifications, this modifications where also compiled on Arduino IDE and it all worked.
platformio.ini
:src/main.cpp
:Compilation logs: