Advertisement
andretafta

Blynk + Relay

Aug 25th, 2020 (edited)
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define BLYNK_PRINT Serial
  2. #include <ESP8266WiFi.h>
  3. #include <BlynkSimpleEsp8266.h>
  4. /// You should get Auth Token in the Blynk App.
  5. // Go to the Project Settings (nut icon).
  6. char auth[] = "YourAuthToken";
  7. // Your WiFi credentials.
  8. // Set password to "" for open networks.
  9. char ssid[] = "YourNetworkName";
  10. char pass[] = "YourPassword";
  11. void setup()
  12. {
  13.   // Debug console
  14.   Serial.begin(115200);
  15.   Blynk.begin(auth, ssid, pass);
  16.  
  17. }
  18. void loop()
  19. {
  20.   Blynk.run();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement