chrome.bluetooth.getDevices 未发现 BLE 设备
chrome.bluetooth.getDevices is not discovering a BLE device
运行 heart-rate-sensor example,我无法在 chrome.bluetooth.getDevices
调用后的结果回调中检测到 BLE 设备(已知良好的心率传感器评估套件)。
即使我尝试每 5 秒定期重新调用 getDevices
:
setInterval(chrome.bluetooth.getDevices, 5000, onDeviceSearchCompleted);
和带有蓝牙设备电源的玩具,我在 onDeviceSearchCompleted
回调中只看到我之前连接的音频设备。
我通过这个 mac app.
可以看到,该设备显然是广告和可发现的
BLE Chrome API 尚未在 OSX or Windows. Keep waiting. Too bad the Chrome Bluetooth API 上实施没有提及受支持的 OS。也让我燃起了希望。
运行 heart-rate-sensor example,我无法在 chrome.bluetooth.getDevices
调用后的结果回调中检测到 BLE 设备(已知良好的心率传感器评估套件)。
即使我尝试每 5 秒定期重新调用 getDevices
:
setInterval(chrome.bluetooth.getDevices, 5000, onDeviceSearchCompleted);
和带有蓝牙设备电源的玩具,我在 onDeviceSearchCompleted
回调中只看到我之前连接的音频设备。
我通过这个 mac app.
可以看到,该设备显然是广告和可发现的BLE Chrome API 尚未在 OSX or Windows. Keep waiting. Too bad the Chrome Bluetooth API 上实施没有提及受支持的 OS。也让我燃起了希望。