GoogleChrome / samples

A repo containing samples tied to new functionality in each release of Google Chrome.
https://www.chromestatus.com/samples
Apache License 2.0
5.79k stars 2.38k forks source link

Web Bluetooth Notifications NotSupportedError #601

Open chipimix opened 6 years ago

chipimix commented 6 years ago

Hello! I am trying to connect a TI SensorTag CC2650 to Web Bluetooth in a Chrome browsers running on Win10. I have used this demo successfully with the following UUID parameters (Humidity Sensor): Bluetooth Service: f000aa20-0451-4000-b000-000000000000 Bluetooth Characteristic: f000aa21-0451-4000-b000-000000000000 It outputs:

> Characteristic UUID:  f000aa21-0451-4000-b000-000000000000
> Broadcast:            false
> Read:                 true
> Write w/o response:   false
> Write:                false
> Notify:               true
> Indicate:             false
> Signed Write:         false
> Queued Write:         false
> Writable Auxiliaries: false

Everything in its right place so far :) Here's what I don't understand: In the notification example sample, using the same parameters as before i get the following Error: Argh! NotSupportedError: GATT operation failed for unknown reason.

Why is this happening? :(

chipimix commented 6 years ago

TLDR: Is it possible to fetch, say, the heartrate value from a mi band2 using web bluetooth on windows? Which example should I explore further? Thanks in advance!!