微信6.5.22 ios BluetoothDeviceFound是否有改动?
wx.onBluetoothDeviceFound(function (devices) {
if (devices.deviceId === undefined || devices.deviceId === null ) {
var ObjdeviceId = devices.devices[0]
} else {
var ObjdeviceId = devices.device
}
var guangbo = that.ab2str(ObjdeviceId.advertisData).toUpperCase()
…
6.5.22之前这地方不会报错,更新到6.5.22这地方返回的advertisData是缺失的应该。
现在改成就好了
if (ObjdeviceId.advertisData)
{
var guangbo = that.ab2str(ObjdeviceId.advertisData).toUpperCase()
}