OLIMEX / ESP32-POE

ESP32 IoT development board with 100Mb Ethernet and 802.3 Power Over Ethernet (POE)
Apache License 2.0
292 stars 110 forks source link

ESP32-POE-ISO-IND fails Ethernet.begin() #34

Closed MihaMarkic closed 1 year ago

MihaMarkic commented 1 year ago

I've just got ESP32-POE-ISO-IND and trying to get ip address through DHCP. I'm using Arduino framework with arduino-libraries/Ethernet@^2.0.1 My code would be like:

#include <Ethernet.h>
  byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
  int result = Ethernet.begin(mac);
  Serial.print("Ethernet.begin ");
  Serial.println(result);

The problem is that begin method always returns 0 (AFAIK it should return 1 when successful https://www.arduino.cc/reference/en/libraries/ethernet/ethernet.begin/).

The question is why it doesn't work. Is it MAC the problem as I just copied the one from sample code?

MihaMarkic commented 1 year ago

Nevermind, I guess I have to use ETH & WifiClient for some reason instead.