I thought I had it sorted out like this
while (Ethernet.linkStatus() != LinkON) {
Serial.println("No link. Check ethernet cable...");
delay(2000);}
It does indeed work when the cable is disconnected, but I'm still missing something because now it's the opposite: I can't get OUT of the loop, even when the cable IS connected, so I ge the same message over and over every 2s...
Like I said, I'm still an absolute novice, much more so with complex stuff like this, so I'm also not sure what I should be including in my sketch...at the top of my sketch I have these two.
#include <LwIP.h>
#include <STM32Ethernet.h>
If I navigate to My Documents >Arduino>libraries I can indeed have two folders called "STM32duino_STM32Ethernet" and "STM32duino_LwIP" respectivelly, which makes sense.
If I dig deeper inside the "src" folder of the "STM32duino_STM32Ethernet" folder, I also see the "STM32Ethernet.h" file which the IDE gives in the #include, which also makes sense.
Opening this with a text editor, I also found those lines you mentioned
enum EthernetLinkStatus {
Unknown,
LinkON,
LinkOFF
};
That's as far as I'm able to follow though and it all seems to make sense. I think I need to do something to the original Ethernet library found in ProgramFiles>Arduino>libraries, since it may not work with the LAN IC the Nucleo has (it's made for W5xxx). Am I on the right path at least ? I'm on a Nucleo F767ZI, since there's a lot of other possible platforms for this

. Thought I'd give more precise details this time about what I actually have in front of my eyes, instead of just speculating. This comes at the expense of annoying people, so sorry for wall of text