Hello! I'm triying to execute this example and is not working for me.
#include <Ethernet.h>
byte mac[]= { 0x90, 0xA2, 0xDA, 0x10, 0x6B, 0xE1 }; // Dirección MAC
byte ip[] = { 192, 168, 1, 255 }; // Dirección IP
void setup()
{
Serial.begin(9600);
Ethernet.begin(mac, ip);
printConectionDetails();
}
void loop(){}
void printConectionDetails(){
Serial.print("IP: ");
Serial.println(Ethernet.localIP());
Serial.print("GATEWAY: ");
Serial.println(Ethernet.gatewayIP());
Serial.print("SUBNET MASK: ");
Serial.println(Ethernet.subnetMask());
Serial.print("DNS: ");
Serial.println(Ethernet.dnsServerIP());
}
I got this output:
IP: 0.206.206.206
GATEWAY: 0.0.0.0
SUBNET MASK: 0.0.0.0
DNS: 192.168.1.1
which is clearly wrong. Anyone can help? Thanks!