Advertisement
Guest User

prueba_cayenne

a guest
Aug 3rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. #include <dummy.h>
  2. #include <CayenneLPP.h>
  3.  
  4.  
  5. #include <CayenneMQTTWiFi.h>
  6. #include <CayenneMQTTEthernetClient.h>
  7. #include <CayenneMessage.h>
  8. #include <CayenneMQTTYun.h>
  9. #include <CayenneTMP102.h>
  10. #include <CayenneMQTTMKR1000.h>
  11. #include <CayenneMQTTWiFi101.h>
  12. #include <CayenneMQTTSerialClient.h>
  13. #include <CayenneArduinoDefines.h>
  14. #include <CayenneMQTTESP8266.h>
  15. #include <CayenneMQTTYunClient.h>
  16. #include <CayenneTemperature.h>
  17. #include <CayenneMQTTESP8266Shield.h>
  18. #include <CayenneMQTTWiFiClient.h>
  19. #include <CayenneArduinoMQTTClient.h>
  20. #include <CayenneVCNL4000.h>
  21. #include <CayenneHandlers.h>
  22. #include <CayenneMQTTESP32.h>
  23. #include <CayenneMQTTSerial.h>
  24. #include <DetectDevice.h>
  25. #include <CayenneMQTTEthernetW5200.h>
  26. #include <CayenneMQTTEthernet.h>
  27. #include <CayenneMQTTEthernetW5500.h>
  28. #include <ESP8266WiFi.h>
  29. #include <WiFi101.h>
  30. #include <ESP8266SerialLibrary.h>
  31. #define CAYENNE_DEBUG
  32. #define CAYENNE_PRINT Serial
  33.  
  34. char ssid[] ) "BioHIC";
  35. char password[] = "ehcos2017";
  36. char username[] = "65b8af40-90db-11e8-91b4-c955f66e4774";
  37. char mqtt_password[] = "7a7bfc71b7151687dcda040eeb7921b2b73e315c";
  38. char client_id[] = "f917b390-972e-11e8-88f5-91483cc3d606";
  39.  
  40. //const char* ssid = "BioHIC";
  41. //const char* password = "ehcos2017";
  42. //const char* username = "65b8af40-90db-11e8-91b4-c955f66e4774";
  43. //const char* mqtt_password = "7a7bfc71b7151687dcda040eeb7921b2b73e315c";
  44. //const char* client_id = "f917b390-972e-11e8-88f5-91483cc3d606";
  45.  
  46. void setup() {
  47.  
  48. // put your setup code here, to run once:
  49.  
  50. Cayenne.begin(username, mqtt_password, client_id, ssid, password);
  51. pinMode(2,OUTPUT);
  52. digitalWrite(2, HIGH):
  53. }
  54.  
  55. void loop() {
  56. // put your main code here, to run repeatedly:
  57. Cayenne.loop();
  58.  
  59. }
  60.  
  61. CAYENNE_IN(0)
  62. { digitalWrite(2, !getValue.asInt());
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement