getBLEDeviceServices 10004错误
发布于 5 年前 作者 kongmin 3140 次浏览 来自 问答
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 回复

android 版本7.0,

微信是最新的6.5.8

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

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

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

Hi,请问设备有sercie吗?

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

回到顶部