Hi guys!
I’m new to the whole blynk and arduino scene and trying to get my head around it all.
Bought a ethernet shield for my Arduino Uno Rev 3 and have been trying to get the dam thing to connect to the internet. Tried using the default “auth” and even the static IP from the example sketch. But every time I try and start it, the serial monitor says:
[0] Blynk v0.3.1
[0] Using static IP
[1300] My IP: 0.44.44.44
[5001] Connecting to cloud.blynk.cc:8442
The funny thing is I actually have set my IP to something completely different???
Anyway, in advance here is the code I have used in my sketch:
/**************************************************************
-
Blynk is a platform with iOS and Android apps to control
-
Arduino, Raspberry Pi and the likes over the Internet.
-
You can easily build graphic interfaces for all your
-
projects by simply dragging and dropping widgets.
-
Blynk library is licensed under MIT license
-
This example code is in public domain.
- This example shows how to configure static IP with Ethernet.
- Be sure to check ordinary Ethernet example first!!!
**************************************************************/
```#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[] = "Auth code goes here obviously";
// Mac address should be different for each device in your LAN
byte arduino_mac[] = { 0x90, 0xA2, 0xDA, 0x10, 0x13, 0x83 };
IPAddress arduino_ip ( 192,168,0,135);
IPAddress dns_ip ( 8, 8, 8, 8);
IPAddress gateway_ip ( 192, 168, 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();
}
Can anyone be my saviour?
Thanks a million,
Paul.