Chrome 低功耗蓝牙 API - 跨平台支持

Chrome Bluetooth Low Energy API - Cross-Platform Support

我访问了 Chrome BLE API page (5/7/2016)。似乎有相互矛盾的信息消息(见下图)。这仅适用于 Chrome OS,还是适用于 OS X 和 Windows?

EDIT/UPDATE:

我尝试了演示应用程序 (demo BLE API) on Windows 10. It was able to see paired devices, but not unpaired devices. I got an error message: Battery device not supported on this platform. I'm not sure if this is because of the test vector I used (LightBlue) 或其他问题。

系统:

阅读您提供的文档,其中您引用了 navigator.bluetoothInteract with BLE devices on the Web 还指出:

Web Bluetooth API is at the time of writing partially implemented in Chrome OS and Chrome Dev for Android behind an experimental flag.

因此,您得到 未定义 作为 return 值。

功能由低功耗蓝牙 (BLE) 通过 Generic Attribute Profile (GATT) 提供的 key/value 对提供。

chrome.bluetoothLowEnergy API 仅适用于 Windows 上的配对设备,因为它仍然使用(当时)Windows 8 API 秒来检索仅配对设备:https://chromium.googlesource.com/chromium/src/+/08c9d69b0c0d625d2ce38e3d8402f36e1226f0fc/device/bluetooth/bluetooth_low_energy_win.h#117

有关信息,Web Bluetooth 团队计划尽可能支持 Windows10:https://github.com/WebBluetoothCG/web-bluetooth/blob/gh-pages/implementation-status.md#chrome