Add BLE layer: firmware, coordinator support, dashboard tab

This commit is contained in:
bot
2026-04-27 14:21:02 +03:00
parent 2ebafc5584
commit 1ca2dc21f5
8 changed files with 807 additions and 13 deletions
+23
View File
@@ -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 1015 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