Skip to content

Reinstate "uBit" BLE name prefix support#95

Merged
microbit-matt-hillsdon merged 1 commit intoappsfrom
fix-ubit
Mar 2, 2026
Merged

Reinstate "uBit" BLE name prefix support#95
microbit-matt-hillsdon merged 1 commit intoappsfrom
fix-ubit

Conversation

@microbit-matt-hillsdon
Copy link
Contributor

@microbit-matt-hillsdon microbit-matt-hillsdon commented Feb 14, 2026

This was supported before the switch to the capacitor-ble plugin but dropped because RequestBleDeviceOptions only accepts a single namePrefix. On native, the scan and bonded device filters now match against either prefix. On web, we resort to a monkey patch. I'll raise an upstream issue.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 2, 2026

Deploying microbit-connection with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5a2aec1
Status:🚫  Build failed.

View logs

This was supported before the switch to the capacitor-ble plugin but
dropped because RequestBleDeviceOptions only accepts a single
namePrefix. On native, the scan and bonded device filters now match
against either prefix. On web, we call patch navigator.bluetooth.requestDevice
to use multiple filters regardless of what the capacitor plugin passes.

I'll raise an upstream issue.
@microbit-matt-hillsdon microbit-matt-hillsdon marked this pull request as ready for review March 2, 2026 16:25
@microbit-matt-hillsdon microbit-matt-hillsdon merged commit 170d820 into apps Mar 2, 2026
3 of 4 checks passed
@microbit-matt-hillsdon microbit-matt-hillsdon deleted the fix-ubit branch March 2, 2026 16:29
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