Not a member of gistpad yet?
Sign Up,
it unlocks many cool features!
- #include<ESP8266HTTPClient.h>
- #include<ESP8266WiFi.h>
- #define BLYNK_TEMPLATE_ID "TMPL3f6l9xU6t"
- #define BLYNK_TEMPLATE_NAME "CONTROL LED 1"
- #define BLYNK_AUTH_TOKEN "NdNGErdPVS2TcadGbrURXR1F7kx1o8R4"
- #define BLYNK_PRINT Serial
- #include <BlynkSimpleEsp8266.h>
- char auth [] = BLYNK_AUTH_TOKEN;
- char ssid [] = "hotspot user"; // Enter your Wi-Fi Username
- char pass[] = "hotspot password"; // Enter your Wi-Fi password
- int ledpin = D4;
- void setup()
- {
- Serial.begin(115200);
- Blynk.begin(auth, ssid, pass);
- pinMode(ledpin, OUTPUT);
- }
- void loop()
- {Blynk.run();
- }
RAW Gist Data
Copied
