Files
Arduino_code_OLIMEX_Locatio…/olimex_ESP32-C5-EVB/esp32_arduino/secrets.h.example
T

41 lines
2.0 KiB
Plaintext

/**
* secrets.h — Credentials & API Keys (NOT Version Controlled)
*
* Instructions:
* 1. Copy this file to secrets.h (same directory)
* 2. Edit secrets.h with your WiFi credentials and API secret
* 3. DO NOT commit secrets.h to Git
* 4. Add secrets.h to .gitignore if not already present
* 5. Flash the board with Arduino IDE
*/
#ifndef SECRETS_H
#define SECRETS_H
// ─ WiFi Credentials ───────────────────────────────────────────────────────
const char* WIFI_SSID = "YourWiFiSSID";
const char* WIFI_PASSWORD = "YourWiFiPassword";
// ─ Static IP Configuration ────────────────────────────────────────────────
// Set USE_STATIC_IP = true to use a fixed IP address
// Otherwise, board will request IP via DHCP
const bool USE_STATIC_IP = false; // true = static IP; false = DHCP
const char* STATIC_IP_ADDR = "192.168.0.240"; // e.g., "192.168.0.240"
const char* STATIC_GATEWAY = "192.168.0.1"; // e.g., "192.168.0.1"
const char* STATIC_SUBNET = "255.255.255.0"; // e.g., "255.255.255.0"
const char* STATIC_DNS1 = "8.8.8.8"; // e.g., "8.8.8.8"
const char* STATIC_DNS2 = "8.8.4.4"; // e.g., "8.8.4.4"
// ─ Web Server Credentials ──────────────────────────────────────────────────
const char* WEB_USER = "admin";
const char* WEB_PASSWORD = "admin";
// ─ API Authentication Secret ──────────────────────────────────────────────
// Used for HMAC-SHA256 request signing (optional)
// If empty, API requests do not require authentication.
// To enable, set a random string and include X-Request-Time/X-Request-Sig headers.
// Example: "my_super_secret_api_key_12345"
const char* API_SECRET = "";
#endif