Created
July 11, 2018 08:11
-
-
Save justind000/c3f622d17b42e9e27bba255d0631a671 to your computer and use it in GitHub Desktop.
Cayenne
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#include "ISE_pH.h" | |
#include <CayenneMQTTESP32.h> | |
ISE_pH pH; | |
// your network information | |
char ssid[] = ""; | |
char wifiPassword[] = ""; | |
// Cayenne authentication info. This should be obtained from the Cayenne Dashboard. | |
char username[] = ""; | |
char password[] = ""; | |
char clientID[] = ""; | |
void setup() { | |
Cayenne.begin(username, password, clientID, ssid, wifiPassword); | |
} | |
void loop() { | |
Cayenne.loop(); | |
Cayenne.virtualWrite(0, pH.measurepH()); | |
Cayenne.virtualWrite(1, pH.measureTemp()); | |
delay(5000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment