#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define BLYNK_TEMPLATE_ID "TMPLhrrwuCVM"
#define BLYNK_TEMPLATE_NAME "Quickstart Template"
#define BLYNK_AUTH_TOKEN "bxOUWof-9r4UNpSXqCxugdmqlq36HeOx
char auth[]= BLYNK_AUTH_TOKEN;
char ssid[]= "Aslam";
char pass[]= "aslam123";
BLYNK_WRITE(V0){
int value = aslam.asInt();
value ? digitalWrite(D0, HIGH) :
digitalWrite(D0, LOW);
}
void setup()
{
Serial.begin(9600);
pinMode(D0, OUTPUT);
Blynk.begin( auth,ssid,pass );
}
void loop (){
Blynk.run() ;
}