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()
})