BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

[SOLVED] Connecting to blynk-cloud error


#1

I am trying to add my second blynk in my network, it is giving me following error. i am on latest version and sucessfully did telnet to the blynk-cloud. Please help

[1013944] Connecting to blynk-cloud.com:8442
[1029003] Connecting to blynk-cloud.com:8442
[1044062] Connecting to blynk-cloud.com:8442
[1059121] Connecting to blynk-cloud.com:8442
[1074180] Connecting to blynk-cloud.com:8442
[1089239] Connecting to blynk-cloud.com:8442

and here is my code

#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <UIPEthernet.h>
#include <BlynkSimpleUIPEthernet.h>
//#include <SimpleTimer.h>

char auth[] = “d”;
byte ard_mac[]={0xDE,0xED,0xFE,0xFE,0xAE,0xEF};
IPAddress ard_ip(192,168,4,200);
IPAddress ard_dns(8,8,8,8);
IPAddress ard_gwy(192,168,4,1);
IPAddress ard_sub(255,255,255,0);

//SimpleTimer timer;

#define echoPin 3 // Echo Pin
#define trigPin 5 // Trigger Pin

long duration, distance; // Duration used to calculate distance

void RepeatTask()
{
/* The following trigPin/echoPin cycle is used to determine the
distance of the nearest object by bouncing soundwaves off of it. */
digitalWrite(trigPin, LOW);
delayMicroseconds(2);

digitalWrite(trigPin, HIGH);
delayMicroseconds(10);

digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);

//Calculate the distance (in cm) based on the speed of sound.
}

void setup() {
Serial.begin(9600);
Blynk.begin(auth, “blynk-cloud.com”, 8442, ard_ip, ard_dns, ard_gwy, ard_sub, ard_mac);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
//timer.setInterval(10, RepeatTask);
}

BLYNK_READ(V8)
{
Blynk.virtualWrite(8,distance);// virtualpin 8 distance
}

void loop() {
Blynk.run(); // Initiates Blynk
//timer.run(); // Initiates SimpleTimer
RepeatTask();
}


#2

As per >forum directions<, please EDIT your last post and enter this key three times, before and after your code.

I am also guessing that your auth key is a bit longer than this…


#3

:slight_smile: Thank you … i wanted to remove my auth code- so my authcode was replaced , I fixed this issue …thanks