Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOMException: No Services found in device. #11

Open
clemos opened this issue Jul 4, 2021 · 0 comments
Open

DOMException: No Services found in device. #11

clemos opened this issue Jul 4, 2021 · 0 comments

Comments

@clemos
Copy link

clemos commented Jul 4, 2021

Hi !

First, thanks for this great project.

While the page is working perfectly on Chrome Desktop (ubuntu), I'm having trouble making the web page work on Chrome Android:

It seems to fail when calling server.getPrimaryService(UUID.SERVICE_ID):

DOMException: No Services matching UUID fd2b4448-aa0f-4a15-a62f-eb0be77a0000 found in Device.

I have also tried to server.getPrimaryServices() instead, but it says:

DOMException: No Services found in device.

I have looked into chrome://bluetooth-internals, and indeed the service is not visible, despite the 'raspberrypi' device displaying in the list of devices when clicking on "Discover" (which seems to imply the service is advertised)

Services visible on Desktop:

  • fd2b4448-aa0f-4a15-a62f-eb0be77a0000 <= the expected service, contains almost about 20 characteristics
  • 00001801-0000-1000-8000-00805f9b34fb

Services visible on Mobile:

  • 00001801-0000-1000-8000-00805f9b34fb <= also visible from desktop
  • 00001800-0000-1000-8000-00805f9b34fb <= not visible on desktop, but has no characteristics

Chrome versions:

  • Mobile: 91.0.4472.120 (Android 10)
  • Desktop: 90.0.4430.212 (Official Build) (64-bit)

I have no real idea what I can do, all I know is I'd really love to make it work on my phone 😅

Please note the device is a Raspberry pi Zero (system completely up-to-date from today)

Anyway, thanks for the great work !

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

No branches or pull requests

1 participant