Skip to content

Instantly share code, notes, and snippets.

@UNSWmir
Created May 3, 2018 12:38
Show Gist options
  • Save UNSWmir/4019be1d975cd0ff2227af3df910d75c to your computer and use it in GitHub Desktop.
Save UNSWmir/4019be1d975cd0ff2227af3df910d75c to your computer and use it in GitHub Desktop.
const String CHANNEL_ID = "XXXXXX"; // The Readiness.io channel ID
const String SENSOR_ID = "XXXXXX"; // Your AgriWebb or made up sensor ID
const String TOPIC = "switch-generic"; // The type of sensor or name of the data your sending
const String VERSION = "1";
const String FORMAT = "";
const char* WIFI_SSID = "XXXXXX"; // Your WiFi SSID / name
const char* WIFI_PASS = "XXXXXX"; // Your WiFi password
const uint8_t TIMEZONE_OFFSET = 10; // The timezone the sensor is located in (eg. 10 for GMT)
const uint16_t DEBOUNCE_TIME = 200; // How long before the next gate reading can take place (ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment