#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <UIPEthernet.h>
#include <BlynkSimpleUIPEthernet.h>
#include <SimpleTimer.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
byte arduino_mac[]={0x48,0x45,0x87,0xA4,0x55,0x23};
SimpleTimer timer;
void publishMillis()
{
unsigned long m=millis()/1000L;
Blynk.virtualWrite(V15,m);
Serial.println(m);
Enc28J60.init(arduino_mac);
}
void setup()
{
Serial.begin(9600);
Blynk.begin(auth);
timer.setInterval(600000L, publishMillis);
}
void loop()
{
Blynk.run();
timer.run();
}
I invented the mac address, but when the publishMillis function is calling I’m losing connection.
Yes, i downloaded this library. I have the latest version of IDE. I get lots of warnings during compiling. After compiling it’s working ok. But after some time I’m getting Heartbeat timeout I don’t know where I’m wrong…
No problem with use my mac address, but if you have two devices using in the same subnet the same MAC then there are a problem.
Now my blynk enc28j60 + UNO is working without problem from yesterday 7:00h ( now are 14:01 in Barcelona).
Good luck!!!
Hi, 12 hours without crash Only twice I got Heartbeat timeout, but it returned to the connection itself - very fast I’m still testing, but I think that I can make a project with it.
Hi. I use the 2.0.6 version of library (lastest), ENC28J60 and Arduino Mega. I can’t check now will it work, but I have the same error while compiling. I checked all folders for redefentions, there’s no matter. I installed it from Library Manager of Arduino IDE. an you help me?