[SOLVED] Library 0.3.3 problem with Arduino/Genuino WiFi shield

I’ve an Arduino WiFI shield (this one Arduino WiFi shield), on top of an Arduino Mega 2560… well… my sketch worked great until the 0.3.3 version.
With this latest library I’ve continuosly connection and disconnection.
I’ve turned back to 0.3.1 and all works fine.

@vshymanskyy please have a look.

You need some test by me?

Could you please try with a simplest example in the Blynk library, and send us your console output.
Thanks!

Okay… this is my code… (the example on the Blynk library).

#define BLYNK_PRINT Serial // Comment this out to disable prints and save space#include <SPI.h>#include <WiFi.h>#include <BlynkSimpleWifi.h>`

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "dd75d9243bba45dab02a90ffbe58fc51";

// Your WiFi credentials
char ssid[] = "FRITZ!Box Fon WLAN 7390";
char pass[] = "4506523768287213"; // Set to "" for open networks

void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,110), 8442);
// Or specify server using one of those commands:
//Blynk.begin(auth, ssid, pass, "server.org", 8442);
//Blynk.begin(auth, ssid, pass, server_ip, port);
}

void loop()
{
Blynk.run();
}
`
This is the Serial Monitor output for the 0.3.1…

[398] Connecting to FRITZ!Box Fon WLAN 7390...
[10400] My IP: 192.168.1.152
[10401] Blynk v0.3.1
[10401] Connecting to 192.168.1.110:8442

… and this for the 0.3.3 …

[397] Connecting to FRITZ!Box Fon WLAN 7390...
[10401] My IP: 192.168.1.152
[10402] Blynk v0.3.3
[10403] Connecting to 192.168.1.110:8442
[14136] Ready (ping: 1066ms).
[19137] Connecting to 192.168.1.110:8442
[20756] Ready (ping: 1611ms).
[25757] Connecting to 192.168.1.110:8442
[27414] Ready (ping: 1652ms).
[32415] Connecting to 192.168.1.110:8442
[34080] Ready (ping: 1660ms).
[39081] Connecting to 192.168.1.110:8442
[40729] Ready (ping: 1642ms).
[45730] Connecting to 192.168.1.110:8442
[47389] Ready (ping: 1654ms).
[52390] Connecting to 192.168.1.110:8442
[54046] Ready (ping: 1650ms).

… and so on …

This is the Serial Monitor with BLYNK_DEBUG…

[397] Connecting to FRITZ!Box Fon WLAN 7390...
[10400] My IP: 192.168.1.152
[10401] Blynk v0.3.3
[10402] Connecting to 192.168.1.110:8442
[10434] <msg 2,1,32
ÿdd75d9243bba45dab02a90ffbe58fc51
[12045] >msg 0,1,200
[12046] Ready (ping: 1557ms).
[12046] <msg 17,1,97
ÿver0.3.3h-beat10buff-in256devArduinocpuATmega2560conHDG204buildMar  5 2016 18:42:00
[12175] Sent 5/102
[17047] Connecting to 192.168.1.110:8442
[17051] <msg 2,1,32
ÿdd75d9243bba45dab02a90ffbe58fc51
[18719] >msg 0,1,200
[18719] Ready (ping: 1637ms).
[18720] <msg 17,2,97
ÿver0.3.3h-beat10buff-in256devArduinocpuATmega2560conHDG204buildMar  5 2016 18:42:00
[18849] Sent 5/102
[23720] Connecting to 192.168.1.110:8442
[23725] <msg 2,1,32
ÿdd75d9243bba45dab02a90ffbe58fc51

This is the Serial Monitor with BLYNK_DEBUG with the old library 0.3.1

[397] Connecting to FRITZ!Box Fon WLAN 7390...
[10399] My IP: 192.168.1.152
[10400] Blynk v0.3.1
[10401] Connecting to 192.168.1.110:8442
[16138] <msg 2,1,32
ÿdd75d9243bba45dab02a90ffbe58fc51
[18214] >msg 0,1,200
[18214] Ready (ping: 2074ms).
[18219] >msg 20,1,17
>pm0in0in0in
[26141] <msg 6,1,0
[26381] >msg 0,1,200
[36143] <msg 6,2,0
[36686] >msg 0,2,200

Thank you very much.
The problem is, that Blynk tries to send more info upon connection.
You can put #define BLYNK_NO_INFO on the top of the sketch as a temporary workaround.
We will try to fix this in next release.

1 Like

Ok… all works fine with your simple workaround!
Great work!