Advertisement
RuiViana

ESP8266LED

Feb 24th, 2017
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.20 KB | None | 0 0
  1. //#define CAYENNE_DEBUG                               // Comente para nao mostrar menssagen de debugs
  2. #define CAYENNE_PRINT Serial                          // Comente para impedir impressoes no serial monitor e salvar espaço
  3. #include <ESP8266WiFi.h>                              // Bibioteca em http:.................
  4. #include "CayenneDefines.h"                           // Bibioteca em http:.................
  5. #include "BlynkSimpleEsp8266.h"                       // Bibioteca em http:.................
  6. #include "CayenneWiFiClient.h"                        // Bibioteca em http:.................
  7.  
  8. char token[] = "ttttttt";                          // Cayenne auth token. Valor encontrado no site ao criar o projeto novo ou no settings
  9. char ssid[] = "sssssss";                             // Digite seu SSID e sua PW
  10. char password[] = "ppppppp";
  11. //-----------------------------------
  12. void setup()
  13. {
  14.   Serial.begin(9600);                                 // Inicia a serial
  15.   Cayenne.begin(token, ssid, password);               // Estabelece comunicacao com o site Cayenne
  16. }
  17. //-----------------------------------
  18. void loop()
  19. {
  20.   Cayenne.run();                                      // Roda o projeto no site
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement