Xin chào!
Em xin hỏi vấn đề này ạ.
Em đã chọn cổng 9 và board NodeMCU 1.0
Sau khi chạy code thì app thông báo thiết bị chưa được kết nối
Có ai biết tại sao không ạ?
Em cám ơn!
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Servo.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "2dffb009e963473fa314841ee456da5c"; //Paste your Auth Token Here
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "VNPT_QUACHHIEN"; //Enter your Wifi User Name
char pass[] = "hien1909"; //Enter your Wifi Password
Servo servo;
Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;
BLYNK_WRITE(V0)
{
servo.write(param.asInt());
}
BLYNK_WRITE(V1)
{
servo1.write(param.asInt());
}
BLYNK_WRITE(V2)
{
servo2.write(param.asInt());
}
BLYNK_WRITE(V3)
{
servo3.write(param.asInt());
}
BLYNK_WRITE(V4)
{
servo4.write(param.asInt());
}
BLYNK_WRITE(V5)
{
servo5.write(param.asInt());
}
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
servo.attach(D0);
servo1.attach(D1);
servo2.attach(D2);
servo3.attach(D3);
servo3.attach(D4);
servo3.attach(D5);
}
void loop()
{
Blynk.run();
}
The email address that this message came from does not appear to be the regular one that the Blynk servers uses when sending out Auth tokens.
Are you using a different Blynk server?
Probably 74880, but possibly 115200.
Test this by pressing the reset button and seeing which baud rate gives you a readable output - then use the same baud rate in your sketch and post your serial output.
When you post the serial output please copy/paste from the serial monitor instead of using screenshots.