[HINDI] Home Automation Using Node MCU & Blynk App | Control Appliances From Anywhere In The World !

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = “2f8482b704cf41fbadb23d937ce10777”; // the auth code that you got on your gmail
char ssid[] = “Harsh Home”; // username or ssid of your WI-FI
char pass[] = “ngfbasketball”; // password of your Wi-Fi

void setup()
{
// Debug console
Serial.begin(9600);
pinMode(D1,OUTPUT); //extend these to D8 if you are using a 8 pin relay
pinMode(D2,OUTPUT);
pinMode(D3,OUTPUT);
pinMode(D4,OUTPUT);

digitalWrite(D1,HIGH); // Make it low if you want everything to go off
digitalWrite(D2,HIGH); // in case of a power cut
digitalWrite(D3,HIGH);
digitalWrite(D4,HIGH);
Blynk.begin(auth, ssid, pass);
}

void loop()
{
Blynk.run();
}

IF YOU ARE GETTING A STRAY ERROR  DOWNLOAD THE PROGRAM FROM HERE

Leave a Reply

Your email address will not be published. Required fields are marked *