我正在尝试写一个铬应用程序,连接到蓝牙低能设备。我将"bluetooth": { "low_energy": true }添加到我的清单中:
{
"name": "DE1",
"version": "1",
"manifest_version": 2,
"icons": {
"128": "de1icon.png"
},
"permissions": [],
"bluetooth": {
"uuids": ["A000"],
"low_energy": true
},
"app": {
"background": {
"scripts": ["chrome.js"]
}
}
}但当我打电话的时候
chrome.bluetoothLowEnergy.connect我知道错误了
错误处理响应: TypeError:无法读取未定义属性的“连接”
医生说这是我应该做的
https://developer.chrome.com/apps/manifest/bluetooth#reference
发布于 2019-07-03 07:01:40
我把这写成铬项目的缺陷
https://bugs.chromium.org/p/chromium/issues/detail?id=980766
他们已经回答了。显然,这个特性仅在ChromeOS上支持,而我正在运行macOS。
https://stackoverflow.com/questions/56860395
复制相似问题