Skip to content

Instantly share code, notes, and snippets.

@anoochit
Last active August 11, 2017 06:34
Show Gist options
  • Save anoochit/4c7aa5b5729abe9c0f72 to your computer and use it in GitHub Desktop.
Save anoochit/4c7aa5b5729abe9c0f72 to your computer and use it in GitHub Desktop.
esp8266-simple-blynk
/*
* This sketch demonstrates how to scan WiFi networks.
* The API is almost the same as with the WiFi Shield library,
* the most obvious difference being the different file you need to include:
*/
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxxxxxxx";
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, "ssid", "password");
}
void loop()
{
Blynk.run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment