获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
wx.onBluetoothDeviceFound(),请问iOS手机扫描结果为何没有AdvertisData字段?
蓝牙 AdvertisData 获取不到数据wepy.onBluetoothDeviceFound(function({devices}) { var array = [] devices.forEach((item) => { console.log(item); console.log('advertisData', wx.arrayBufferToBase64(item.advertisData)); if (item.advertisData) { var string = wx.arrayBufferToBase64(item.advertisData) array.push({deviceId: item.deviceId, name: item.name, data: string}) } }) self.deviceList = self.deviceList.concat(array) self.$apply() }) [图片]
2021-12-10