Thanks in advance for taking a look at my post; this problem has been driving me up the wall.
I'm attempting to connect to my local network (to connect to a MQTT server) using a Controllino MEGA, which, according to the product's website, utilizes a W5100 chip for networking. As the W5100 chip does not have a fixed MAC address, I have been attempting to utilize the Ethernet library's capability of using a non DHCP version of Ethernet.begin(). When I attempt to do so, the localIP I'm being shown is 0.0.0.0.
This is the relevant code segment:
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip = IPAddress(10,1,10,180); //same result regardless of what parameter 4 is set to
IPAddress dns = IPAddress(75,75,76,76); //same result with parameters 75,75,75,75
IPAddress gateway = IPAddress(10,1,10,1);
IPAddress subnet = IPAddress(255,255,255,0);
Ethernet.begin(mac, ip, dns, gateway, subnet);
delay(5000);
Serial.println(Ethernet.localIP()); //returns 0.0.0.0
And this is what ipconfig shows when I connect the same ethernet cord to my laptop instead of the controllino:
Does anyone see what I'm doing wrong? Any help would be greatly appreciated!