Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ESP8266_Lib.h>
- #include <BlynkSimpleShieldEsp8266.h>
- #include <SoftwareSerial.h>
- #define ESP8266_BAUD 9600
- #define BLYNK_PRINT Serial
- // You should get Auth Token in the Blynk App.
- // Go to the Project Settings (nut icon).
- char auth[] = "Your Blynk App Token Here";
- // Your WiFi credentials.
- // Set password to "" for open networks.
- char ssid[] = "Your WiFi Name Here";
- char pass[] = "Your WiFi Password Here";
- SoftwareSerial EspSerial(2, 3); // RX, TX
- ESP8266 wifi(&EspSerial);
- void setup()
- {
- Serial.begin(9600);
- delay(10);
- EspSerial.begin(ESP8266_BAUD);
- delay(10);
- Blynk.begin(auth, wifi, ssid, pass);
- }
- void loop()
- {
- Blynk.run();
- }
Advertisement
Add Comment
Please, Sign In to add comment