HI, getting frustrated. This project worked perfectly 4 days ago, but for last couple of days, always getting
*[130133] Connecting to cloud.blynk.cc:8442*
*[132320] Login timeout*
*[135320] Connecting to cloud.blynk.cc:8442*
*[142215] Connecting to cloud.blynk.cc:8442*
*[149239] Connecting to cloud.blynk.cc:8442*
*[156389] Connecting to cloud.blynk.cc:8442*
*[163463] Connecting to cloud.blynk.cc:8442*
*[170513] Connecting to cloud.blynk.cc:8442*
*[177612] Connecting to cloud.blynk.cc:8442*
*[184637] Connecting to cloud.blynk.cc:8442*
Got ESP8266-12E with following Arduino 1.6.5 IDE (Blynk libraries updated to latest version)
Can telnet cloud.blynk.cc:8442 no problems from laptop on same WiFi subnet.
HelloServer ESP example sketch works fine and perfect.
???
Sketch:
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, "keepout", "xxxxxxxx");
pinMode(13, OUTPUT);
}
BLYNK_WRITE(V1)
{
BLYNK_LOG("Got a value: %s", param.asStr());
analogWrite(13,param.asInt());
}
void loop()
{
Blynk.run();
if (analogRead(A0) < 500) {
Blynk.email("xxxxxx@gmail.com", "Analog0", "Analog0 dropped");
BLYNK_LOG("should have sent email");
}
}
this is wrong. You shouldnât use any Blynk command in main loop. Loop may be executed thousand of times per second and your connection will be dropped because of high traffic.
Regarding your connection problem - please install latest Blynk library from trunk.
Perfect⌠commented out the command and back up and runningâŚ
Iâll hunt out how to get read an analogue value and set off and email on the community.
Regarding updaing libraries from trunk, every time i do this - IDE says âalready existâ, and Library manager says im INSTALLED, no option to update to a new versionâŚ
Good evening! I have a problem, NODEMCU ESP8266-12E device wants to connect to the server BLYNK, thatâs sketch #define BLYNK_PRINT Serial // Comment this out to disable prints and save space #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth [] = â6f80a51fbd384fc3ac91718c7c0c78cbâ;
// Your WiFi credentials.
// Set password to ââ for open networks.
char ssid [] = âOSTROVSKIYâ;
char pass [] = âvova888888â;
I successfully challenged these ports in the router for ustroysta, working here with this Arrangement sketch #define BLYNK_PRINT Serial // Comment this out to disable prints and save space #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth [] = â6f80a51fbd384fc3ac91718c7c0c78cbâ;
void setup ()
{
Serial.begin (115200)
WiFi.mode (WIFI_STA);
int cnt = 0;
while (WiFi.status ()! = WL_CONNECTED) {
delay (500);
Serial.print ( â.â);
if (cnt ++> = 10) {
WiFi.beginSmartConfig ();
while (1) {
delay (1000);
if (WiFi.smartConfigDone ()) {
Serial.println ();
Serial.println ( âSmartConfig: Successâ);
break;
}
Serial.print ( â|â);
}
}
}
WiFi.printDiag (Serial);
Blynk.config (auth);
}
void loop ()
{
Blynk.run ();
}
only netrymae long rozryvaetsya and connectivity to the server again pidklyuchaetsya
@1119 I recommend you to start from basic sketch. Did you try it? http://examples.blynk.cc/
Make sure is works for you. After that you can add step-by-step your own code.
Blynk.begin (auth, ssid, pass);
// You can also specify server: //Blynk.begin(auth, Ssid, pass, âblynk-cloud.comâ, 8442); //Blynk.begin(auth, Ssid, pass, IPAddress (192,168,1,100), 8442);
}
void loop ()
{
Blynk.run ();
// 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!
}
hereâs firmware back bay #define BLYNK_PRINT Serial // Comment this out to disable prints and save space #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth [] = â6f80a51fbd384fc3ac91718c7c0c78cbâ;
void setup ()
{
Serial.begin (115200)
WiFi.mode (WIFI_STA);
int cnt = 0;
while (WiFi.status ()! = WL_CONNECTED) {
delay (500);
Serial.print ( â.â);
if (cnt ++> = 10) {
WiFi.beginSmartConfig ();
while (1) {
delay (1000);
if (WiFi.smartConfigDone ()) {
Serial.println ();
Serial.println ( âSmartConfig: Successâ);
break;
}
Serial.print ( â|â);
}
}
}
WiFi.printDiag (Serial);
Blynk.config (auth);
}
void loop ()
{
Blynk.run ();
}
Initially it on this pidklyuchaetsya and sweat rozryvaetsya connectivity
I have a similar problem.
I brought up the local server according to the instructions.
in general, it works, but very often the connection takes too long.
Device ESP8266. Server - Khadas VIM3 (Ubuntu 20.04)
17:01:42.446 INFO - Using data dir â/home/khadas/blynk-server/DATAâ
17:01:43.337 INFO - Region : local. Host : 172. 18.1. 111.
17:01:44.128 INFO - Initializing gmail smtp mail transport. Username : examplegmailcom. SMTP host : smtpgmailcom:587
17:01:44.215 INFO - Reports : 0
17:01:44.219 INFO - Didnât find Letâs Encrypt certificates.
17:01:44.220 INFO - Automatic certificate generation is turned ON.
17:01:43.796 INFO - HTTP API and WebSockets server listening at 8080 port.
17:01:43.800 INFO - HTTPS API, WebSockets and Admin page server listening at 9443 port.
17:01:43.803 INFO - Mqtt hardware server listening at 8440 port.
17:01:48.550 WARN - User ânvyandexruâ credentials are wrong. /172. 18.1. 10:46328
17:01:51.276 WARN - User 'nvyandexruâ credentials are wrong. /172. 18.1. 10:46330
17:01:53.161 WARN - User ânvyandexruâ credentials are wrong. /172. 18.1. 10:46332
17:03:58.701 WARN - User 'nvyandexcomâ not registered. /172. 18.1. 10:46340
17:04:55.275 WARN - User 'nvyandexruâ credentials are wrong. /172. 18.1. 10:46358
17:07:36.722 INFO - Trying register user : eamgmailcom, app : Blynk
17:07:36.745 INFO - Registered eamgmailcom.
17:07:36.941 INFO - eamgmail.com Blynk-app (android-22729) joined.
17:07:38.270 WARN - Error sending greeting email for ea*mgmailcom.
17:07:52.120 INFO - Creating new dashboard.