Blynk library version: 0.3.3-1.0.0-beta
IDE: Arduino
IDE version: 1.6.13-1.8.13(did not tried older)
Board type: Arduino mega 2560(1x chinese, 1x original italian)
Additional modules: Ethernet shield w5100 (1x original italian, 2x chinese)
Hi guys! First of all, thank you for great product! Using it at home for aproximmate year for now…
I can’t make work my new arduino mega and ethernet shield w5100(
The issue is simple, blynk sketch just not connecting to blynk server in local network, and in blynk-cloud.
The bug is strange, year ago or something like that, it all was working. I actually have one mega with w5100 that i program approximate in that time, and it still working. Bug reproduces with all versions of ethernet library that i found, and all blynk-lib versions. Bug behavior is version dependent. It can be just stuck on connecting, or connection timeout. I actualy tried all possible variations and combinations of libraries versions(blynk-lib and ethernet-lib), different arduinos, shields, different switches, cables, ide versions, and so on. Seem’s like i only one who use that hardware) And that is ethernet library, or blynk compability with it, totaly broken(
#define BLYNK_PRINT Serial
#define BLYNK_DEBUG
#define W5100_CS 10
#define SDCARD_CS 4
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
const char auth[] = "fg8hpyqvnJbPAYbwd1hWUna2KuzkvRNB";
byte mac[] = { 0x00, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // as i remember blynk lib generates mac from token, but i tried to mannualy set it up.
IPAddress arduino_ip (10,10,158,180);
IPAddress server_ip (10,10,158,254); //well yep, server on a router, but if move local server to another subent - still nothing
IPAddress dns_ip (10,10,158,254);
IPAddress gateway_ip (10,10,158,254);
IPAddress subnet_mask(255,255,255,0);
uint16_t port = 8080;
void setup()
{
// Debug console
Serial.begin(115200);
pinMode(SDCARD_CS, OUTPUT);
digitalWrite(SDCARD_CS, HIGH);
// Ethernet.begin(mac, arduino_ip, dns_ip, gateway_ip, subnet_mask);
// Blynk.config(auth,server_ip, 8080);
// Blynk.connect(10000);
// Blynk.begin(auth, server_ip, 8080, arduino_ip, dns_ip, gateway_ip, subnet_mask, mac);
Blynk.begin(auth, IPAddress(10,10,158,254), 8080);
// tried using blynk config, and blynk begin in different combinations too
}
void loop()
{
Blynk.run();
}