//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266_SoftSer.h>
#include <BlynkSimpleShieldEsp8266_SoftSer.h>
// Set ESP8266 Serial object
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX
ESP8266 wifi(EspSerial);
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “b8e681a604764cb7b94c0e4dec3c576e”;
void setup()
{
// Set console baud rate
Serial.begin(115200);
delay(10);
// Set ESP8266 baud rate
// 9600 is recommended for Software Serial
EspSerial.begin(115200);
delay(10);
Blynk.begin(auth, wifi, “Sarmad”, “sarmad1994”);
}
void loop()
{
Blynk.run();
}