Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: ajward on October 12, 2022, 02:16:45 AM

Title: ESP32-POE-ISO with Arduino IDE 2.0
Post by: ajward on October 12, 2022, 02:16:45 AM
Hi,
I'm having trouble getting one of these boards working using the examples that come with the board support. I have the Board connected over USB, and I can program it and run programs successfully.

I know the Arduino IDE fairly well, but I can't get connected on a LAN. The Sketch seems to stall at

  // Wait for connection
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }


It seems a little confusing, since Wifi SSID and password are irrelevant on a LAN.

It also seems to try and flash an LED on Pin 13 that isn't there (as far as I can tell).

These are specifically examples for the ESP32-POE-ISO, or so it says.

What am I missing?
Title: Re: ESP32-POE-ISO with Arduino IDE 2.0
Post by: ajward on October 12, 2022, 02:22:56 AM
...A bit more progress. I've got the AdvancedWebServer example to function, but over WiFi. How do I alter the code to use wired Ethernet and turn WiFi off?
Title: Re: ESP32-POE-ISO with Arduino IDE 2.0
Post by: LubOlimex on October 12, 2022, 10:17:55 AM
Use the default Ethernet demo that is part of the Arduino IDE for ESP32. Load the default example for Ethernet, from File -> Examples -> Ethernet -> ETH_LAN8720. Compile and upload.
Title: Re: ESP32-POE-ISO with Arduino IDE 2.0
Post by: ajward on October 12, 2022, 10:01:07 PM
Thanks for the quick reply.

I have 3 versions of the Arduino IDE: 1.8.13, 1.8.19 (latest 1.x) and 2.0.0

None of them include File -> Examples -> Ethernet! Grrr! Somebody moved it I guess.

However, some extensive searching revealed File -> Examples -> WiFi -> ETH_LAN8720

In Ardiuno 2.0.0 AND IT WORKS! Maybe this'll help someone else!

Thanks again for your help. You guys do great work!
Title: Re: ESP32-POE-ISO with Arduino IDE 2.0
Post by: LubOlimex on October 13, 2022, 08:40:07 AM
Maybe it was changed, glad you got it working and thanks for the update.