#pragma once
#include <stdint.h>

// WiFi defaults (can be changed from ESP config web UI)
const char *WIFI_SSID = "Office";
const char *WIFI_PASSWORD = "Nathan1@3$!";

// Backend defaults (can be changed from ESP config web UI)
const char *API_BASE_URL = "http://172.30.42.13:8057";

// Reader defaults from Admin -> ESP RFID (can be changed from ESP config web UI)
const char *ESP_DEVICE_ID = "";
const char *ESP_API_KEY = "";
const char *ESP_READER_TYPE = "checkin_checkout";

// RFID reader pins
const uint8_t RFID_SS_PIN = 5;   // SDA/SS pin on MFRC522
const uint8_t RFID_RST_PIN = 22; // RST pin on MFRC522

// Set true only if you use non-default SPI pins on ESP32
const bool RFID_USE_CUSTOM_SPI_PINS = true;
const uint8_t RFID_SCK_PIN = 18;
const uint8_t RFID_MISO_PIN = 19;
const uint8_t RFID_MOSI_PIN = 21;

// Runtime behavior
const unsigned long WIFI_RECONNECT_INTERVAL_MS = 15000;
const unsigned long HTTP_TIMEOUT_MS = 12000;
const unsigned long RFID_DUPLICATE_SUPPRESS_MS = 1500;
const bool ESP_SEND_TAPPED_AT = true;

// TLS settings
// If your device cannot validate your server cert chain yet, set ESP_TLS_INSECURE = true.
const bool ESP_USE_TLS = true;
const bool ESP_TLS_INSECURE = true;
const char *ESP_TLS_ROOT_CA = "";

// Local provisioning AP + config page auth
const char *CONFIG_AP_SSID_PREFIX = "RFID-Setup-";
const char *CONFIG_AP_PASSWORD = "espconfig123";
const char *CONFIG_WEB_USERNAME = "admin";
const char *CONFIG_WEB_PASSWORD = "admin";
