收藏
回答

getConnectedBluetoothDevices

  1. 获取devices 数组为0

  2. Object

    1. devices:[]

    2. errMsg:"getConnectedBluetoothDevices:ok"


回答关注问题邀请回答
收藏

1 个回答

  • Jcs
    Jcs
    2018-05-04

    开启搜索之后设置一个延时再获取设备

    wx.startBluetoothDevicesDiscovery({
          success: function (res) {
            setTimeout(function () {
              wx.getBluetoothDevices({
                success: function (res) {
                  console.log("搜索结果", res)
                }
              })
            }, 1000)
          }
        })


    2018-05-04
    赞同
    回复
登录 后发表内容