Last active
August 11, 2017 06:34
-
-
Save anoochit/4c7aa5b5729abe9c0f72 to your computer and use it in GitHub Desktop.
esp8266-simple-blynk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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