-
public final class BleManagerExperimental BLE advertisement collector. Passively scans for all nearby advertising devices (wildcard, no service filter) and forwards each discovery to DataManager. No GATT connection is ever opened.
Mirrors the structure of WifiManager:
(context, dataManager)ctor withstartUpdates()/stopUpdates()/applyConfig()/shutdown().Scan strategy (foreground-only for now — the SDK's foreground service keeps the app foregrounded during a delivery):
SCAN_MODE_LOW_LATENCY+reportDelay = 0→ the fastest per-advertisement callback cadence Android offers.Empty filter list (wildcard) so every advertiser is reported.
The scan is torn down and restarted every restartIntervalMs (~25 min) to dodge the AOSP 30-minute limit that otherwise downgrades a long-running scan to opportunistic mode (results only when another app scans). We never restart faster than the platform's "5 scan starts / 30 s" limit.
No dedup: every callback is captured so cadence/gaps can be measured from the CSV, matching the IMU fidelity playbook.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBleManager.Companion
-
Constructor Summary
Constructors Constructor Description BleManager(Context context, DataManager dataManager)
-
Method Summary
Modifier and Type Method Description final UnitstartUpdates()final UnitstopUpdates()final UnitapplyConfig(BleConfiguration config)final Unitshutdown()-
-
Constructor Detail
-
BleManager
BleManager(Context context, DataManager dataManager)
-
-
Method Detail
-
startUpdates
final Unit startUpdates()
-
stopUpdates
final Unit stopUpdates()
-
applyConfig
final Unit applyConfig(BleConfiguration config)
-
-
-
-