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.77k stars 2.38k forks source link

device-information-characteristics-async-await example returning #731

Closed WikiWookie closed 3 years ago

WikiWookie commented 3 years ago

Using this example https://googlechrome.github.io/samples/web-bluetooth/device-information-characteristics-async-await.html

I can get the Manufacturer Identifier for a bluetooth device, but after that I get Argh! RangeError: Offset is outside the bounds of the DataView when trying to get the system id. What exactly is going on when retrieving that data and how can I get the Organizationally Unique Identifier for my particular device?

beaufortfrancois commented 3 years ago

Can you share your JS code?

WikiWookie commented 3 years ago

For my particular issue it seems the manufacturer did not implement the specs correctly, so code-wise the example seems to be working as intended.