Skip to content

fix(bluetooth): rediscover remembered heart-rate monitors - #43

Merged
ridecontrol merged 2 commits into
mainfrom
fix/hr-advertisement-rediscovery
Sep 6, 2026
Merged

fix(bluetooth): rediscover remembered heart-rate monitors#43
ridecontrol merged 2 commits into
mainfrom
fix/hr-advertisement-rediscovery

Conversation

@ridecontrol

Copy link
Copy Markdown
Collaborator

Fix

Remove the HR-specific advertisement-discovery opt-out. Use the existing shared discovery lifecycle alongside bounded direct GATT retries, retaining fallback when watching fails or produces no events.

Live hardware evidence

A remembered TRACKR HR repeatedly rejected GATT connections in 1–2 ms with NetworkError: Bluetooth Device is no longer in range. Enabling advertisement watching for that same device, without refreshing or re-pairing, exposed its broadcasts and allowed the unchanged retry loop to connect. The dashboard showed live heart rate and battery status; it remained connected after diagnostic instrumentation was removed.

Verification

  • bun run ci passed on 5d002dc: 402 tests, Biome, Tailwind diagnostics, TypeScript, production build.
  • Regression coverage for rediscovery after out-of-range failures and direct-retry fallback when watching rejects or emits no events.
  • Updated README to replace the incorrect direct-only HR reconnect rationale.

@ridecontrol
ridecontrol merged commit 4eb1e80 into main Sep 6, 2026
2 checks passed
@ridecontrol
ridecontrol deleted the fix/hr-advertisement-rediscovery branch September 6, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant