WebServer_WT32_ETH01 board error

I have an ESP32-ETH01 board (a copy of WT32-ETH01?), but when I try to compile examples from the WebServer_WT32_ETH01 library (v1.5.1), having selected ESP32-DEV Module as the board, when I try to compile any of the examples, I get

#error This code is designed to run on ESP32 platform! Please check your Tools->Board setting.
      |    ^~~~~
exit status 1

Compilation error: exit status 1

I am using ESP32 3.1.1 How can I resolve this?

It's very likely that you don't need this library any more for ESP Core 3.x.x.
If you want to use this library, downgrade your ESP32 Core to below 3. For example 2.0.16

Using IDE V2.3.4 with ESP32 core 3.1.1 I compiled and linked one of my ESP32-ETH01 programs with a few warnings no errors
I used Tools>Board "ESP32 Dev Module"
what libraries are you using - my code used

// for ESP32-ETH01 
/*
 * HelloServer example from the ESP32 WebServer library modified for Ethernet.
 */

#include <EthernetESP32.h>
#include <WebServer.h>
#include <ESPmDNS.h>

I am using the WebServer_WT32_ETH01 library, like I said. Which library is your example for? Searching the list of libraries does not show any "ESP32 WebServer library"

"It's very likely that you don't need this library any more for ESP Core 3.x.x."
Supposing I don't use it, can you point me to a working ESP32 Ethernet example, please?

Yeah i'd love to hear that too

try the EthernetESP32 simple HTTP server example File>Examples>EthernetESP32)>HelloServer

That worked, but there was a gotcha to get it going, which I record here to help others:

I was using an ESP32 downloader dongle, which automatically configures the pins for programming the ESP32. However, after compiling and downloading the sketch, it would not initiaialise the Ethernet, until I realised that I had to disconnect the GPIO0 lead after programming.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.