Skip to content

Instantly share code, notes, and snippets.

@li2hub
Created November 16, 2018 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save li2hub/1c84e2c24b603cee755a0eaef737fe4d to your computer and use it in GitHub Desktop.
Save li2hub/1c84e2c24b603cee755a0eaef737fe4d to your computer and use it in GitHub Desktop.
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; //Authentication token from Blynk app
// Your WiFi credentials.
char ssid[] = "xxxxxxxxxx"; //Your WiFi SSID
char pass[] = "xxxxxxxxxx"; //Your WiFi Password
void setup()
{
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment