i was trying to use a static ip but i don’t seem to connect to the server
/*******************************************************************
Blynk lets you create beautiful drag-and-drop visual interfaces
for your projects in 5 minutes. And it works with almost every
hardware out there.
Docs, Tutorials, everything: http://www.blynk.cc
Github: http://github.com/blynkkk
Blynk Community: http://community.blynk.cc
Follow Us: http://www.facebook.com/blynkapp
http://twitter.com/blynk_app
Blynk library is licensed under MIT license
This example code is in public domain.
*********************************************************************
You’ll need, in general:
- Blynk App (download from AppStore or Google Play)
- Arduino UNO or similar microcontroller board
- Decide how to connect Arduino to the Internet (USB, Ethernet,
Wi-Fi, etc.). Bluetooth is on the way.
There is a bunch of great example sketches included to show you how to get
started. Think of them as LEGO bricks and combine them as you wish.
For example, take the Ethernet Shield sketch and combine it with the
Servo example, or choose a USB sketch and add a code from SendData
example.
*********************************************************************
Let’s turn ON your LED with Blynk!
In this example we'll use Arduino UNO + Ethernet Shield
5 Steps guide:
(watch video tutorial here: )
1. Connect LED to Pin 9
( http://arduino.cc/en/uploads/Tutorial/simplefade_bb.png )
In the Blynk App:
2. Create New Project
3. Email yourself Auth Token. You can do it later at any time
4. Add a Button Widget. Select Pin D9 in Widget's Settings
5. Press Play icon. Enjoy Blynking!
********************************************************************/
#define BLYNK_DEBUG // Optional, this enables lots of prints
#define BLYNK_PRINT Serial
#define BLYNK_PRINT Serial // Enables Serial Monitor
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h> // This part is for Ethernet stuff
char auth[] = "b2b8139fbb5942929dc6e44e6c4e5ef6"; // Put your Auth Token here. (see Step 3 above)
IPAddress server_ip (10, 0, 0, 10);
// Mac address should be different for each device in your LAN
byte arduino_mac[] = { 0x90, 0xA2, 0xDA, 0x10, 0x1F, 0xC4 };
IPAddress arduino_ip ( 192, 168, 1, 70);
IPAddress dns_ip ( 8, 8, 8, 8);
IPAddress gateway_ip ( 192, 168, 1, 254);
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(); // All the Blynk Magic happens here...
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}
but i get this
[k v0.3.1
[0] Using static IP
[0] Blynk v0.3.1
[0] Using static IP
[1300] My IP: 0.106.106.106
[5001] Connecting to cloud.blynk.cc:8442
and now the talent command doesn’t work
MBP-de-Bernardo:~ bernardovalente$ telnet cloud.blynk.cc
Trying 45.55.195.102…
telnet: connect to address 45.55.195.102: Connection refused
telnet: Unable to connect to remote host