Add BLE layer: firmware, coordinator support, dashboard tab
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
// ─── WiFi (for UDP transport only) ───────────────────────────────────────────
|
||||
#define WIFI_SSID "sandbox"
|
||||
#define WIFI_PASSWORD "Jaunsgads11!!"
|
||||
|
||||
// ─── Coordinator ─────────────────────────────────────────────────────────────
|
||||
#define COORDINATOR_IP "192.168.1.133"
|
||||
#define COORDINATOR_PORT 5005
|
||||
|
||||
// ─── BLE scan ────────────────────────────────────────────────────────────────
|
||||
#define BLE_SCAN_DURATION_SECS 5 // each passive scan window (seconds)
|
||||
#define BLE_FLUSH_INTERVAL_MS 5000 // how often to flush queue to coordinator (ms)
|
||||
#define HEARTBEAT_INTERVAL_MS 10000 // heartbeat cadence (ms) — same as WiFi nodes
|
||||
|
||||
// ─── Dedup ───────────────────────────────────────────────────────────────────
|
||||
// Suppress the same MAC within this window. Randomised-MAC devices will
|
||||
// reappear when their MAC rotates (typically every 10–15 min), which is fine.
|
||||
#define BLE_DEDUP_SECS 30 // seconds before the same MAC is allowed again
|
||||
#define BLE_DEDUP_CACHE_SIZE 300 // ring-buffer size; BLE sees far more MACs than WiFi
|
||||
|
||||
// ─── Queue ───────────────────────────────────────────────────────────────────
|
||||
#define BLE_QUEUE_SIZE 256 // events buffered between flushes
|
||||
Reference in New Issue
Block a user