Google chrome chrome应用程序蓝牙api

Google chrome chrome应用程序蓝牙api,google-chrome,bluetooth,Google Chrome,Bluetooth,我正在尝试获取与windows 7计算机配对的蓝牙设备列表。我从这里取了密码 但getDevices始终返回空列表,即使在启动startDiscovery之后也是如此 我已经在手机中启用了蓝牙功能,并将其与windows 7配对,即使在调用getdevice时它也不会显示配对的设备 chrome应用程序是无框架的,以开发者模式运行 顺便说一句,我的windows蓝牙用户界面显示了我的移动设备和一些其他设备 如果有人能告诉我哪里出了错,我将不胜感激 var device_names = {}; v

我正在尝试获取与windows 7计算机配对的蓝牙设备列表。我从这里取了密码

但getDevices始终返回空列表,即使在启动startDiscovery之后也是如此

我已经在手机中启用了蓝牙功能,并将其与windows 7配对,即使在调用getdevice时它也不会显示配对的设备

chrome应用程序是无框架的,以开发者模式运行

顺便说一句,我的windows蓝牙用户界面显示了我的移动设备和一些其他设备

如果有人能告诉我哪里出了错,我将不胜感激

var device_names = {};
var updateDeviceName = function(device) {
  device_names[device.address] = device.name;
};
var removeDeviceName = function(device) {
 delete device_names[device.address];
}

// Add listeners to receive newly found devices and updates
// to the previously known devices.
chrome.bluetooth.onDeviceAdded.addListener(updateDeviceName);
chrome.bluetooth.onDeviceChanged.addListener(updateDeviceName);
chrome.bluetooth.onDeviceRemoved.addListener(removeDeviceName);

// With the listeners in place, get the list of devices found in
// previous discovery sessions, or any currently active ones,
// along with paired devices.
chrome.bluetooth.getDevices(function(devices) {
  for (var i = 0; i < devices.length; i++) {
    updateDeviceName(devices[i]);
  }
});

// Now begin the discovery process.
chrome.bluetooth.startDiscovery(function() {
// Stop discovery after 30 seconds.
  setTimeout(function() {
  chrome.bluetooth.stopDiscovery(function() {});
  }, 30000);
}); 
"bluetooth": {
    "uuids": [ "1105", "1106" ]
}