4924cf53e5
WiFi/firmware: - SSID updated to botnet in both node and ble_node config.h - Stale coordinator comment removed from node/config.h Coordinator fixes: - BLE-only nodes now visible in dashboard sidebar and node detail (build_nodes was querying beacon_events only; BLE nodes have no beacons) - ble_events and heartbeat_events added to pruning cycle - ble_events table added to ensure_schema() in dashboard - confidence column dropped from beacon_events (always 'high', never queried) - Ingestor commits batched per packet instead of per store call - wal_autocheckpoint=500 added to ingestor DB connection (writer was missing it) - python3 -u added to both service ExecStart lines (stdout was buffered, logs not appearing in journalctl) Repo hygiene: - .gitignore added (events.db, __pycache__, build artifacts) - events.db removed from git tracking - README updated: new apartment, node table, active investigations, BLE observations labelled as previous-location data, status checklist Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
1.8 KiB
C
24 lines
1.8 KiB
C
#pragma once
|
||
|
||
// ─── WiFi (for UDP transport only) ───────────────────────────────────────────
|
||
#define WIFI_SSID "botnet"
|
||
#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
|