Skip to content

Instantly share code, notes, and snippets.

@justind000
Created July 11, 2018 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justind000/c3f622d17b42e9e27bba255d0631a671 to your computer and use it in GitHub Desktop.
Save justind000/c3f622d17b42e9e27bba255d0631a671 to your computer and use it in GitHub Desktop.
Cayenne
#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