#pragma once #include "BoardConfig.h" // ===================================================================== // Debug // ===================================================================== #define DEBUG_MODE 1 // ===================================================================== // WiFi Credentials // ===================================================================== struct WiFiCred { const char *ssid; const char *pass; }; static WiFiCred wifiNetworks[] = { { "Dobro Veče", "goodnight" }, { "iot-2GHz", "lesson-greater" }, }; static const int NUM_WIFI = sizeof(wifiNetworks) / sizeof(wifiNetworks[0]); // ===================================================================== // ntfy.sh Topics // ===================================================================== #define NTFY_BASE "https://ntfy.sh" #if DEBUG_MODE #define TOPIC_SUFFIX "_test" #else #define TOPIC_SUFFIX "" #endif // Change since=10s to since=20s (must be > poll interval of 15s, but not too large) #define ALERT_URL NTFY_BASE "/ALERT_klubhaus_topic" TOPIC_SUFFIX "/json?since=20s&poll=1" #define SILENCE_URL NTFY_BASE "/SILENCE_klubhaus_topic" TOPIC_SUFFIX "/json?since=20s&poll=1" #define ADMIN_URL NTFY_BASE "/ADMIN_klubhaus_topic" TOPIC_SUFFIX "/json?since=20s&poll=1" #define STATUS_URL NTFY_BASE "/STATUS_klubhaus_topic" TOPIC_SUFFIX // ===================================================================== // Timing // ===================================================================== #define POLL_INTERVAL_MS 15000 #define BLINK_INTERVAL_MS 500 #define STALE_MSG_THRESHOLD_S 600 #define NTP_SYNC_INTERVAL_MS 3600000 #define WAKE_DISPLAY_MS 5000 #define TOUCH_DEBOUNCE_MS 300 #define HOLD_DURATION_MS 2000 #define HEARTBEAT_INTERVAL_MS 30000 #if DEBUG_MODE #define BOOT_GRACE_MS 5000 #else #define BOOT_GRACE_MS 30000 #endif // ===================================================================== // Hardware pins are now in boards/board_*.h via BoardConfig.h // Screen dimensions (SCREEN_WIDTH, SCREEN_HEIGHT) also come from there. // =====================================================================