Skip to content

Instantly share code, notes, and snippets.

@UNSWmir
Created May 3, 2018 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save UNSWmir/30df012a900155c13966dec074550def to your computer and use it in GitHub Desktop.
Save UNSWmir/30df012a900155c13966dec074550def to your computer and use it in GitHub Desktop.
const String CHANNEL_ID = "XXXXXXXXX"; // The Readiness.io channel ID
const String SENSOR_ID = "XXXXXXXXX"; // Your AgriWebb or made up sensor ID
const String TOPIC = "solenoid-valve"; // The type of sensor or name of the data your sending
const String VERSION = "1";
const String FORMAT = "";
const char* WIFI_SSID = "XXXXXXXXX"; // Your WiFi SSID / name
const char* WIFI_PASS = "XXXXXXXXX"; // Your WiFi password
const uint16_t UPDATE_RATE = 5; // How long to wait between sending data back (in seconds)
const uint8_t TIMEZONE_OFFSET = 10; // The timezone the sensor is located in (eg. 10 for GMT)
const String LISTEN_TOPIC = "water-level"; // the name of the sensor that you are listening to
// make your solenoid valve change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment