I have an arduino leonardo eth compatible board.(https://robotdyn.com/leonardo-eth-v2-with-atmega32u4-ethernet-w5500-arduino-compatible-board.html)
when i try to connect over ethernet, it can’t be set Ip address and fail to connect.
this is my code.
#include <SPI.h>
#include <Ethernet2.h>
#include <BlynkSimpleEthernet2.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "key";
// Mac address should be different for each device in your LAN
byte arduino_mac[] = {0xDE, 0x08, 0xDC, 0x53, 0xF7, 0x15};
IPAddress arduino_ip(192, 168, 0, 55);
IPAddress dns_ip(8, 8, 8, 8);
IPAddress gateway_ip(192, 168, 0, 1);
IPAddress subnet_mask(255, 255, 255, 0);
#define W5500_CS 10
#define SDCARD_CS 4
void setup()
{
// Debug console
Serial.begin(9600);
pinMode(SDCARD_CS, OUTPUT);
digitalWrite(SDCARD_CS, HIGH); // Deselect the SD card
Blynk.begin(auth, "blynk-cloud.com", 80, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
}
void loop()
{
Blynk.run();
}
and i got this result.
[2000] IP:0.0.0.0
[2001]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v0.6.1 on Arduino
[2004] Connecting to blynk-cloudcom:80
I do not know why my IP is 0.0.0.0.
I would appreciate your advice.