血魔东健
血魔东健
  • 发布:2019-05-15 00:14
  • 更新:2020-10-29 16:53
  • 阅读:1615

h5+ api 蓝牙模块 getBLEDeviceServices 回调成功但没有服务内容

分类:HTML5+

vm = new Vue({
...
methods: {
a: function () {
plus.bluetooth.createBLEConnection({
deviceId: self.deviceId,
success: function(e){
self.link.T = true
getDeviceServices(type)
},
fail: function(e){
console.log(JSON.stringify(e))
}
});
}

}  

})

...

function getDeviceServices (type) {
plus.bluetooth.getBLEDeviceServices({
deviceId: vm.deviceId,
success: function(e) {
vm.bss = e.services;
console.log('get services success: '+ e.services.length)
// vm.getCharacteristics(type)
},
fail: function(e){
console.log(JSON.stringify(e))
}
})
)

2019-05-15 00:14 负责人:无 分享
已邀请:
1***@163.com

1***@163.com

请问,解决了么,我也遇到了同样的问题

该问题目前已经被锁定, 无法添加新回复