/*
 * PunjabiUni Kisan soil sensor — configuration TEMPLATE.
 *
 * COPY THIS FILE TO config.h IN THE SAME FOLDER, then fill in your own values.
 * The sketch will not compile until config.h exists.
 *
 *   cp config.example.h config.h
 *
 * NEVER share or publish your filled-in config.h. It holds your WiFi password
 * and your device key — anyone with the key can post readings as you.
 * (config.h is already in this repository's .gitignore.)
 */

#ifndef KISAN_CONFIG_H
#define KISAN_CONFIG_H

// --- Your WiFi -------------------------------------------------------------
// The ESP32 only joins 2.4 GHz networks. If your router runs 2.4 GHz and 5 GHz
// under the same name, the board may still find it — but if it never connects,
// that is the first thing to check.
#define WIFI_SSID "your-wifi-name"
#define WIFI_PASSWORD "your-wifi-password"

// --- Your PunjabiUni device key --------------------------------------------
// Printed ONCE when your farmer account was set up. It is not recoverable —
// if you lose it, a new one has to be issued.
#define KISAN_API_KEY "paste-your-device-key-here"

// Where readings are posted. Replace <your-site> with the real host.
#define KISAN_URL "https://<your-site>/api/kisan/sensor"

// --- This device -----------------------------------------------------------
// A short name for THIS sensor, so you can tell your plots apart on the
// dashboard. Letters, numbers and dashes; 64 characters at most.
#define SENSOR_ID "field-north-01"

// --- Calibration (do this once per probe) ----------------------------------
// See the two-cup procedure in the comments of soil-sensor.ino.
//
//   AIR_VALUE   the raw reading with the probe DRY, in open air
//   WATER_VALUE the raw reading with the probe standing in WATER
//
// On a capacitive probe AIR_VALUE is the HIGHER number. The values below are
// placeholders in the usual range for a 12-bit ADC — they are NOT your probe's
// values, and using them unchanged is the most common reason these sensors
// read nonsense.
#define AIR_VALUE 3000
#define WATER_VALUE 1300

// --- How often to report ---------------------------------------------------
// Minutes of deep sleep between readings. Soil moisture changes slowly; 30
// minutes is plenty, and longer means longer battery life.
#define SLEEP_MINUTES 30

#endif  // KISAN_CONFIG_H
