Files
esp32-cluster/firmware/node/config.h
T
2026-04-05 13:06:25 +03:00

32 lines
2.5 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
// ─── WiFi ────────────────────────────────────────────────────────────────────
#define WIFI_SSID "sandbox"
#define WIFI_PASSWORD "Jaunsgads11!!"
// ─── Coordinator ─────────────────────────────────────────────────────────────
// This PC (192.168.1.101) runs coordinator.py during the test phase.
// Will change to Orange Pi (192.168.1.133) when we migrate.
#define COORDINATOR_IP "192.168.1.133"
#define COORDINATOR_PORT 5005
// ─── Scan ────────────────────────────────────────────────────────────────────
#define SCAN_INTERVAL_MS 15000 // how often to scan (ms)
#define HEARTBEAT_INTERVAL_MS 10000 // how often to send a heartbeat (ms)
// ─── Probe sniffing ──────────────────────────────────────────────────────────
#define PROBE_SNIFF 1 // 1 = enabled, 0 = disabled
#define PROBE_DEDUP_SECS 30 // suppress same MAC+SSID within this window (seconds)
#define DEDUP_CACHE_SIZE 64 // unique MAC+SSID pairs tracked for dedup
#define PROBE_QUEUE_SIZE 128 // max probe events buffered between flushes
#define DEAUTH_QUEUE_SIZE 128 // max deauth/disassoc events buffered between flushes
// ─── Association capture ─────────────────────────────────────────────────────
#define ASSOC_QUEUE_SIZE 32 // max assoc/reassoc events buffered between flushes
// ─── RSSI alert threshold ────────────────────────────────────────────────────
#define RSSI_ALERT_THRESHOLD -60 // flush immediately if attack-strength deauth seen (dBm)
// ─── Channel hopping ─────────────────────────────────────────────────────────
#define HOP_DWELL_MS 300 // ms to dwell on each channel (13 ch × 300ms ≈ 4s/sweep)