PiSugar/sugar-wifi-conf

DOMException: No Services found in device.

clemos opened this issue · 2 comments

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 !