Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <dummy.h>
- #include <CayenneLPP.h>
- #include <CayenneMQTTWiFi.h>
- #include <CayenneMQTTEthernetClient.h>
- #include <CayenneMessage.h>
- #include <CayenneMQTTYun.h>
- #include <CayenneTMP102.h>
- #include <CayenneMQTTMKR1000.h>
- #include <CayenneMQTTWiFi101.h>
- #include <CayenneMQTTSerialClient.h>
- #include <CayenneArduinoDefines.h>
- #include <CayenneMQTTESP8266.h>
- #include <CayenneMQTTYunClient.h>
- #include <CayenneTemperature.h>
- #include <CayenneMQTTESP8266Shield.h>
- #include <CayenneMQTTWiFiClient.h>
- #include <CayenneArduinoMQTTClient.h>
- #include <CayenneVCNL4000.h>
- #include <CayenneHandlers.h>
- #include <CayenneMQTTESP32.h>
- #include <CayenneMQTTSerial.h>
- #include <DetectDevice.h>
- #include <CayenneMQTTEthernetW5200.h>
- #include <CayenneMQTTEthernet.h>
- #include <CayenneMQTTEthernetW5500.h>
- #include <ESP8266WiFi.h>
- #include <WiFi101.h>
- #include <ESP8266SerialLibrary.h>
- #define CAYENNE_DEBUG
- #define CAYENNE_PRINT Serial
- char ssid[] ) "BioHIC";
- char password[] = "ehcos2017";
- char username[] = "65b8af40-90db-11e8-91b4-c955f66e4774";
- char mqtt_password[] = "7a7bfc71b7151687dcda040eeb7921b2b73e315c";
- char client_id[] = "f917b390-972e-11e8-88f5-91483cc3d606";
- //const char* ssid = "BioHIC";
- //const char* password = "ehcos2017";
- //const char* username = "65b8af40-90db-11e8-91b4-c955f66e4774";
- //const char* mqtt_password = "7a7bfc71b7151687dcda040eeb7921b2b73e315c";
- //const char* client_id = "f917b390-972e-11e8-88f5-91483cc3d606";
- void setup() {
- // put your setup code here, to run once:
- Cayenne.begin(username, mqtt_password, client_id, ssid, password);
- pinMode(2,OUTPUT);
- digitalWrite(2, HIGH):
- }
- void loop() {
- // put your main code here, to run repeatedly:
- Cayenne.loop();
- }
- CAYENNE_IN(0)
- { digitalWrite(2, !getValue.asInt());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement