#include<SPI.h>#include<Ethernet.h>voidsetup(){// Open serial communications and wait for port to open:
Serial.begin(9600);while(!Serial){;// wait for serial port to connect. Needed for native USB port only
}}voidloop(){if(Ethernet.linkStatus()==Unknown){Serial.println("Link status unknown. Link status detection is only available with W5200 and W5500.");}elseif(Ethernet.linkStatus()==LinkON){Serial.println("Link status: On");}elseif(Ethernet.linkStatus()==LinkOFF){Serial.println("Link status: Off");}}