Hi guys, I have some connection problems. I have Arduino Uno R3 and Enthernet Shield and I try Blynk example Arduino_Enthernet, so there is what i got:
[0] Blynk v0.2.1
[0] Using static IP
[1300] My IP: 192.168.178.50
[1301] Connecting to cloud.blynk.cc:8442
[8130] Connecting to cloud.blynk.cc:8442
[14953] Connecting to cloud.blynk.cc:8442
[21776] Connecting to cloud.blynk.cc:8442
[28599] Connecting to cloud.blynk.cc:8442
[35423] Connecting to cloud.blynk.cc:8442
[42255] Connecting to cloud.blynk.cc:8442
[49088] Connecting to cloud.blynk.cc:8442
[55920] Connecting to cloud.blynk.cc:8442
My code:
> #define BLYNK_PRINT Serial // Comment this out to disable prints and save space
> #include <SPI.h>
> #include <Ethernet.h>
> #include <BlynkSimpleEthernet.h>
> // You should get Auth Token in the Blynk App.
> // Go to the Project Settings (nut icon).
> char auth[] = "YourAuthToken";
> IPAddress server_ip (10, 0, 0, 10);
> // Mac address should be different for each device in your LAN
> byte arduino_mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
> IPAddress arduino_ip ( 192, 168, 178, 50);
> IPAddress dns_ip ( 8, 8, 8, 8);
> IPAddress gateway_ip ( 10, 0, 0, 1);
> IPAddress subnet_mask(255, 255, 255, 0);
> void setup()
> {
> Serial.begin(9600);
> Blynk.begin(auth, "cloud.blynk.cc", 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
> // Or like this:
> //Blynk.begin(auth, "cloud.blynk.cc", 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
> }
> void loop()
> {
> Blynk.run();
> }
So why it’s doesn’t work as expected?
P.S. I used static IP because of DHCP problems.