I building my first project, when i press reset button first time, it can’t connect to server, when press again, it’s connected, i press 1 more time, it can’t connect.
I try with Blynk server and custom server
My Serial Monitor: https://drive.google.com/open?id=1K2TbCnYSuJLWOxRl2ABGveoQDXngZM_l
• Hardware: ESP8266 v12F
• Blynk Library version: 0.5.4
#define BLYNK_PRINT Serial
#define BLYNK_NO_BUILTIN
#define BLYNK_NO_FLOAT
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
void setup() {
Serial.begin(9600);
delay(2000);
WiFi.begin("wififree24h","khongcopassdau");
while(WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(500);
}
Serial.println("");
ketNoiBlynk("7405417ceddc403aab4d5d60a6141dd3", "blynk-cloud.com", 80);
}
void loop() {
Blynk.run();
}
void ketNoiBlynk(String key, String diaChi, int cong) {
Blynk.config((char*) key.c_str(), (char*) diaChi.c_str(), cong);
Blynk.connect(333); // delay 7s, [SOLVED] https://community.blynk.cc/t/solved-blynk-freezes-the-arduino/6706/15
}