设备:安卓平板荣耀侍卫T106
组件名称:蓝牙API
微信版本:安卓,7.0.6
基础库版本:2.8.3
问题:
为什么所有蓝牙API都提示is not a function??微信是从应用宝下载的,在微信直接下载的7.0.10,提示解析程序包时出现问题。
TypeError: wx.offBLEConnectionStateChange is not a function
TypeError: wx.offBluetoothDeviceFound is not a function
TypeError: wx.offBluetoothAdapterStateChange is not a function
TypeError: wx.offBLECharacteristicValueChange is not a function
你用到的这几个API wx.offBLEConnectionStateChange、wx.offBluetoothDeviceFound、wx.offBluetoothAdapterStateChange、wx.offBLECharacteristicValueChange都需要基础版本>=2.9.0,而你调试用的设备基础版本是2.8.3