getBLEDeviceServices 10004错误

发布于 6 年前作者 kongmin3334 次浏览最后编辑 6 年前来自 ask
wx.onBluetoothDeviceFound(function (res2) {
  console.log('发现新蓝牙设备')
  console.log(res2)
  var device = res2.devices[0];
  console.log(device)
  console.log('设备id:' + device.deviceId)
  console.log('设备name:' + device.name)
  
  
    wx.getBLEDeviceServices({
      deviceId: device.deviceId,
      complete: function (res) {
        console.log(">>>getBLEDeviceServices:",res) //这边报10004 没有找到指定服务错误,何解
      }

    })


})
6 回复
hufang
hufang1 楼6 年前

android 版本7.0,

微信是最新的6.5.8

yong35
yong352 楼6 年前

wx.getBLEDeviceServices 不是要在连接成功后调用的吗

luoguiying
luoguiying3 楼6 年前

@Kevin马凯 请问怎么看有设备有没service?查硬件信息?我这是pos58热敏式

xyu
xyu4 楼6 年前

是的,要在连接成功之后调用

xiuyingtang
xiuyingtang5 楼6 年前

Hi,请问设备有sercie吗?

weiwu
weiwu6 楼4 年前

系统平台和微信版本是什么呢?